mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 22:56:11 +03:00
comment update on rotate test
This commit is contained in:
parent
06065c3ab4
commit
13fa798e52
@ -53,8 +53,8 @@
|
|||||||
ok(-1 != viewer.buttons.buttons.indexOf(viewer.rotateLeft), "rotateLeft should be found");
|
ok(-1 != viewer.buttons.buttons.indexOf(viewer.rotateLeft), "rotateLeft should be found");
|
||||||
ok(-1 != viewer.buttons.buttons.indexOf(viewer.rotateRight), "rotateRight should be found");
|
ok(-1 != viewer.buttons.buttons.indexOf(viewer.rotateRight), "rotateRight should be found");
|
||||||
|
|
||||||
// Now simulate the left/right button clicks. Security prevents us from simulating a click,
|
// Now simulate the left/right button clicks.
|
||||||
// so we will call the 'onRelease' handler for the button
|
// TODO: re-factor simulateViewerClickWithDrag so it'll accept any element, and use that.
|
||||||
ok(viewer.viewport.degrees === 0, "Image should start at 0 degrees rotation");
|
ok(viewer.viewport.degrees === 0, "Image should start at 0 degrees rotation");
|
||||||
viewer.rotateLeft.onRelease();
|
viewer.rotateLeft.onRelease();
|
||||||
ok(viewer.viewport.degrees === 270, "Image should be 270 degrees rotation (left)");
|
ok(viewer.viewport.degrees === 270, "Image should be 270 degrees rotation (left)");
|
||||||
|
Loading…
Reference in New Issue
Block a user