mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 14:46:10 +03:00
Added test case for tile-drawing event.
This commit is contained in:
parent
be79249c9c
commit
27424348f3
@ -280,4 +280,23 @@
|
||||
viewer.open( '/test/data/testpattern.dzi' );
|
||||
} );
|
||||
|
||||
// ----------
|
||||
asyncTest( 'tile-drawing event', function () {
|
||||
var tileDrawing = function ( event ) {
|
||||
viewer.removeHandler( 'tile-drawing', tileDrawing );
|
||||
ok( event, 'Event handler received event data' );
|
||||
if ( event ) {
|
||||
// Make sure we have the expected elements set
|
||||
ok(event.context, "Context is not set");
|
||||
ok(event.tile, "Tile is not set");
|
||||
ok(event.rendered, "Rendered is not set");
|
||||
}
|
||||
viewer.close();
|
||||
start();
|
||||
};
|
||||
|
||||
viewer.addHandler( 'tile-drawing', tileDrawing );
|
||||
viewer.open( '/test/data/testpattern.dzi' );
|
||||
} );
|
||||
|
||||
} )();
|
||||
|
Loading…
Reference in New Issue
Block a user