imageloader_test.js
No description.

File Location

/goog/net/imageloader_test.js


Public Protected Private

Global Functions

assertImagesAreCorrect()
No description.
code »
handleDisposalImageLoaderEvent()
No description.
code »
makeLoaderSynchronous&loader.loadImage_()
No description.
code »
makeLoaderSynchronous()
Overrides the loader's loadImage_ method so that it dispatches an image loaded event immediately, causing any event listners to receive them synchronously. This allows tests to assume synchronous execution.
code »
makeLoaderSynchronous&originalLoadImage()
No description.
code »
setUp()
No description.
code »
tearDown()
No description.
code »
testDisposeInTheMiddleOfLoadingWorks()
Tests loading image and disposing before loading completes.
code »
testImagesAddedAfterStart()
Verifies that if an additional image is added after start() was called, but before COMPLETE was dispatched, no COMPLETE event is sent. Verifies COMPLETE is finally sent when .start() is called again and all images have now completed loading.
code »
testImagesAddedAndStartedAfterStart()
Verifies that more images can be added after an upload starts, and start() can be called for them, resulting in just one COMPLETE event once all the images have completed.
code »
testImagesRemovedAfterStart()
Verifies that if images are removed after loading has started, COMPLETE is dispatched once the remaining images have finished.
code »
testLoadingUntilCompletion()
Tests loading of images until completion.
code »
testSetsCorsAttribute()
Verifies that the correct image attribute is set when using CORS requests.
code »

Global Variables

TEST_EVENT_TYPES :
No description.
Code »
TEST_IMAGES :
Mapping from test image file name to: [expected width, expected height, expected event to be fired].
Code »
No description.
Code »
startTime :
No description.
Code »

Directory net

File Reference