Index: LayoutTests/media/video-controls-hide-after-touch-on-control.html |
diff --git a/LayoutTests/media/video-controls-hide-on-move-outside-controls.html b/LayoutTests/media/video-controls-hide-after-touch-on-control.html |
similarity index 82% |
copy from LayoutTests/media/video-controls-hide-on-move-outside-controls.html |
copy to LayoutTests/media/video-controls-hide-after-touch-on-control.html |
index bbd27246f8be2dbc2a2796618cdb0ae7283f0646..7715602593f57267742396af3b1e56fa46035fd3 100644 |
--- a/LayoutTests/media/video-controls-hide-on-move-outside-controls.html |
+++ b/LayoutTests/media/video-controls-hide-after-touch-on-control.html |
@@ -29,7 +29,7 @@ function runTest() |
eventSender.mouseUp(); |
testExpected("video.paused", false); |
- runAfterControlsHidden(function() |
+ runAfterHideMediaControlsTimerFired(function() |
Ignacio Solla
2014/08/06 19:05:56
Note that this is a new file, but for some reason
|
{ |
controls = mediaControlsButton(video, "panel"); |
testExpected("getComputedStyle(controls).opacity", 0); |
@@ -37,17 +37,16 @@ function runTest() |
consoleWrite(""); |
endTest(); |
}, video); |
- |
- // Move the mouse to the upper-left corner of the video. |
- eventSender.mouseMoveTo(video.offsetLeft + 4, video.offsetTop + 4); |
} |
</script> |
<body> |
- <p>Test video element control visibility when mouse is not over element.</p> |
+ <p>Test video element control visibility after touch on control. After a delay the |
+ controls must be hidden.</p> |
<p>This test only runs in DRT!</p> |
<video id="no-video-media" controls loop oncanplaythrough="runTest()"></video> |
<script> |
+ window.internals.settings.setDeviceSupportsMouse(false); |
setSrcById("no-video-media", findMediaFile("video", "content/test")); |
</script> |
</body> |