bulkloader_test.js
No description.

File Location

/goog/net/bulkloader_test.js


Public Protected Private

Global Functions

getSuccessfulBulkLoader&bulkLoader.onSuccess&xhrIo.dispose()
No description.
code »
getNonSuccessfulBulkLoader&bulkLoader.onSuccess&xhrIo.dispose()
No description.
code »
getNonSuccessfulBulkLoader&bulkLoader.onError&xhrIo.dispose()
No description.
code »
getNonSuccessfulBulkLoader(uris)
Gets the non-successful bulkloader for the specified uris with some modifications for testability.
  • Added onSuccess and onError methods to simulate success and error while loading uris.
  • The send function of the XhrManager used by the bulkloader calls the onSuccess or onError function after a specified time interval.
Arguments:
uris : Array.<string>
The URIs.
code »
getSuccessfulBulkLoader&bulkLoader.onSuccess&xhrIo.getResponseText()
No description.
code »
getNonSuccessfulBulkLoader&bulkLoader.onSuccess&xhrIo.getResponseText()
No description.
code »
getNonSuccessfulBulkLoader&bulkLoader.onError&xhrIo.getResponseText()
No description.
code »
getSuccessfulBulkLoader(uris)
Gets the successful bulkloader for the specified uris with some modifications for testability.
  • Added onSuccess methods to simulate success while loading uris.
  • The send function of the XhrManager used by the bulkloader calls the onSuccess function after a specified time interval.
Arguments:
uris : Array.<string>
The URIs.
code »
handleError()
No description.
code »
handleSuccess()
No description.
code »
getSuccessfulBulkLoader&bulkLoader.onSuccess&xhrIo.isSuccess()
No description.
code »
getNonSuccessfulBulkLoader&bulkLoader.onSuccess&xhrIo.isSuccess()
No description.
code »
getNonSuccessfulBulkLoader&bulkLoader.onError&xhrIo.isSuccess()
No description.
code »
getNonSuccessfulBulkLoader&bulkLoader.onError()
No description.
code »
getSuccessfulBulkLoader&bulkLoader.onSuccess()
No description.
code »
getNonSuccessfulBulkLoader&bulkLoader.onSuccess()
No description.
code »
setUp()
No description.
code »
setUpPage()
No description.
code »
tearDownPage()
No description.
code »
testBulkLoaderLoadError()
Test error loading URIs using the bulkloader.
code »
testBulkLoaderLoadSuccess()
Test successful loading of URIs using the bulkloader.
code »

Global Variables

DELAY_INTERVAL_BETWEEN_URI_REQUESTS :
Test interval between sending uri requests to the server.
Code »
DELAY_INTERVAL_FOR_URI_LOAD :
Test interval before a response is received for a URI request.
Code »
loadError :
No description.
Code »
loadSuccess :
No description.
Code »
successResponseTexts :
No description.
Code »

Directory net

File Reference