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