openseadragon/test/test.js

23 lines
741 B
JavaScript
Raw Normal View History

2013-02-14 22:21:07 +04:00
(function() {
2013-03-07 22:44:08 +04:00
asyncTest('OpenSeadragon', function() {
$(document).ready(function() {
var viewer = OpenSeadragon({
id: 'example',
prefixUrl: '/build/openseadragon/images/',
tileSources: '/test/data/testpattern.dzi',
showNavigator: true
});
ok(viewer, 'Viewer exists');
viewer.addHandler('open', function(eventSender, eventData) {
ok(true, 'Open event was sent');
ok(eventSender === viewer, 'Sender of open event was viewer');
ok(eventData, 'Handler also received event data');
start();
});
});
});
2013-02-14 22:21:07 +04:00
})();