mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-29 08:36:10 +03:00
Tests: code cleanup
This commit is contained in:
parent
59a254bea6
commit
d782da411e
@ -14,7 +14,7 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
teardown: function () {
|
teardown: function () {
|
||||||
if (!!viewer && viewer.close) {
|
if (viewer && viewer.close) {
|
||||||
viewer.close();
|
viewer.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -189,7 +189,6 @@
|
|||||||
var closeHandler = function() {
|
var closeHandler = function() {
|
||||||
viewer.removeHandler('close', closeHandler);
|
viewer.removeHandler('close', closeHandler);
|
||||||
ok(!viewer.source, 'no source');
|
ok(!viewer.source, 'no source');
|
||||||
$('#example').empty();
|
|
||||||
ok(true, 'Close event was sent');
|
ok(true, 'Close event was sent');
|
||||||
ok(!viewer._updateRequestId, 'timer is off');
|
ok(!viewer._updateRequestId, 'timer is off');
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user