From 13fa798e52d5455503f1c6e7955a14ca20a1bcea Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Fri, 7 Mar 2014 10:11:02 -0800 Subject: [PATCH] comment update on rotate test --- test/rotate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/rotate.js b/test/rotate.js index c59bb91e..9128d7fa 100644 --- a/test/rotate.js +++ b/test/rotate.js @@ -53,8 +53,8 @@ ok(-1 != viewer.buttons.buttons.indexOf(viewer.rotateLeft), "rotateLeft 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, - // so we will call the 'onRelease' handler for the button + // Now simulate the left/right button clicks. + // 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"); viewer.rotateLeft.onRelease(); ok(viewer.viewport.degrees === 270, "Image should be 270 degrees rotation (left)");