mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-29 08:36:10 +03:00
Fixed message context to be more correct. I believe the message is only displayed when a failure occurs, so it needs to be clear what was being tested.
This commit is contained in:
parent
e368bd50aa
commit
0bfb834393
@ -25,8 +25,8 @@
|
|||||||
viewer.removeHandler('open', openHandler);
|
viewer.removeHandler('open', openHandler);
|
||||||
ok(true, 'Open event was sent');
|
ok(true, 'Open event was sent');
|
||||||
ok(viewer.drawer, 'Drawer exists');
|
ok(viewer.drawer, 'Drawer exists');
|
||||||
ok(viewer.drawer.canRotate(), 'drawer.canRotate is true');
|
ok(viewer.drawer.canRotate(), 'drawer.canRotate needs to be true');
|
||||||
ok(!viewer.showRotationControl, 'showRotationControl is on - default should be off');
|
ok(!viewer.showRotationControl, 'showRotationControl should be off');
|
||||||
ok(!viewer.rotateLeft, "rotateLeft button should be null");
|
ok(!viewer.rotateLeft, "rotateLeft button should be null");
|
||||||
ok(!viewer.rotateRight, "rotateRight button should be null");
|
ok(!viewer.rotateRight, "rotateRight button should be null");
|
||||||
start();
|
start();
|
||||||
@ -48,10 +48,10 @@
|
|||||||
viewer.removeHandler('open', openHandler);
|
viewer.removeHandler('open', openHandler);
|
||||||
ok(true, 'Open event was sent');
|
ok(true, 'Open event was sent');
|
||||||
ok(viewer.drawer, 'Drawer exists');
|
ok(viewer.drawer, 'Drawer exists');
|
||||||
ok(viewer.drawer.canRotate(), 'drawer.canRotate is true');
|
ok(viewer.drawer.canRotate(), 'drawer.canRotate needs to be true');
|
||||||
ok(viewer.showRotationControl, 'showRotationControl is on');
|
ok(viewer.showRotationControl, 'showRotationControl should be true');
|
||||||
ok(-1 != viewer.buttons.buttons.indexOf(viewer.rotateLeft), "rotateLeft not found");
|
ok(-1 != viewer.buttons.buttons.indexOf(viewer.rotateLeft), "rotateLeft should be found");
|
||||||
ok(-1 != viewer.buttons.buttons.indexOf(viewer.rotateRight), "rotateRight not found");
|
ok(-1 != viewer.buttons.buttons.indexOf(viewer.rotateRight), "rotateRight should be found");
|
||||||
start();
|
start();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user