Fullscreen media controls are unusable in pagination mode
[WebKit-https.git] / LayoutTests / fullscreen / video-cursor-auto-hide.html
index 577641eb17afe623729c9314d78684dc75e7b0b5..17f8b2e173be8bf9b0fcec9a1fa38c2d271240df 100644 (file)
@@ -6,10 +6,11 @@
     <script src="full-screen-test.js"></script>
     <script>
         var wrapper = document.getElementById('wrapper');
+        var video = document.getElementById('video');
 
         function checkForHiddenMouse()
         {
-            testExpected('window.internals.getCurrentCursorInfo(document)', 'type=None hotSpot=0,0');
+            testExpected('window.internals.getCurrentCursorInfo()', 'type=None hotSpot=0,0');
             endTest();
         }
 
@@ -17,9 +18,9 @@
         {
             if (window.internals) {
                 internals.settings.setTimeWithoutMouseMovementBeforeHidingControls(0);
-                wrapperBox = internals.boundingBox(wrapper);
-                eventSender.mouseMoveTo(wrapperBox.left + wrapperBox.width / 2, wrapperBox.top + wrapperBox.height / 2);
-                testExpected('window.internals.getCurrentCursorInfo(document)', 'type=Pointer hotSpot=0,0');
+                videoBox = internals.boundingBox(video);
+                eventSender.mouseMoveTo(videoBox.left + videoBox.width / 2, videoBox.top + videoBox.height / 2);
+                testExpected('window.internals.getCurrentCursorInfo()', 'type=Pointer hotSpot=0,0');
                 setTimeout(checkForHiddenMouse, 0);
             }
             else