Fullscreen media controls are unusable in pagination mode
[WebKit-https.git] / LayoutTests / fullscreen / video-cursor-auto-hide.html
index f1c49a86af751811a9624e44fe2e53f3b965ab10..17f8b2e173be8bf9b0fcec9a1fa38c2d271240df 100644 (file)
@@ -6,6 +6,7 @@
     <script src="full-screen-test.js"></script>
     <script>
         var wrapper = document.getElementById('wrapper');
+        var video = document.getElementById('video');
 
         function checkForHiddenMouse()
         {
@@ -17,8 +18,8 @@
         {
             if (window.internals) {
                 internals.settings.setTimeWithoutMouseMovementBeforeHidingControls(0);
-                wrapperBox = internals.boundingBox(wrapper);
-                eventSender.mouseMoveTo(wrapperBox.left + wrapperBox.width / 2, wrapperBox.top + wrapperBox.height / 2);
+                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);
             }