Doc and test messages fix.

This commit is contained in:
Antoine Vandecreme 2015-06-11 10:59:32 -04:00
parent fa868a039d
commit 584daea732
2 changed files with 4 additions and 4 deletions

View File

@ -1008,7 +1008,7 @@ function setTileLoaded(tiledImage, tile, image, cutoff) {
* @property {OpenSeadragon.Tile} tile - The tile which has been loaded. * @property {OpenSeadragon.Tile} tile - The tile which has been loaded.
* @property {function} getCompletionCallback - A function giving a callback to call * @property {function} getCompletionCallback - A function giving a callback to call
* when the asynchronous processing of the image is done. The image will be * when the asynchronous processing of the image is done. The image will be
* marked as .entirely loaded when the callback has been called once for each * marked as entirely loaded when the callback has been called once for each
* call to getCompletionCallback. * call to getCompletionCallback.
*/ */
tiledImage.viewer.raiseEvent("tile-loaded", { tiledImage.viewer.raiseEvent("tile-loaded", {

View File

@ -978,7 +978,7 @@
notOk( tile.loaded, "The tile should not be marked as loaded."); notOk( tile.loaded, "The tile should not be marked as loaded.");
setTimeout(function() { setTimeout(function() {
notOk( tile.loading, "The tile should not be marked as loading."); notOk( tile.loading, "The tile should not be marked as loading.");
ok( tile.loaded, "The tile should not be marked as loaded."); ok( tile.loaded, "The tile should be marked as loaded.");
start(); start();
}, 0); }, 0);
} }
@ -1001,7 +1001,7 @@
notOk( tile.loaded, "The tile should not be marked as loaded."); notOk( tile.loaded, "The tile should not be marked as loaded.");
callback(); callback();
notOk( tile.loading, "The tile should not be marked as loading."); notOk( tile.loading, "The tile should not be marked as loading.");
ok( tile.loaded, "The tile should not be marked as loaded."); ok( tile.loaded, "The tile should be marked as loaded.");
start(); start();
}, 0); }, 0);
} }
@ -1030,7 +1030,7 @@
notOk( tile.loaded, "The tile should not be marked as loaded."); notOk( tile.loaded, "The tile should not be marked as loaded.");
callback2(); callback2();
notOk( tile.loading, "The tile should not be marked as loading."); notOk( tile.loading, "The tile should not be marked as loading.");
ok( tile.loaded, "The tile should not be marked as loaded."); ok( tile.loaded, "The tile should be marked as loaded.");
start(); start();
}, 0); }, 0);
}, 0); }, 0);