Index: LayoutTests/media/video-controls-always-visible-when-control-hovered.html |
diff --git a/LayoutTests/media/video-controls-hide-on-move-outside-controls.html b/LayoutTests/media/video-controls-always-visible-when-control-hovered.html |
similarity index 77% |
copy from LayoutTests/media/video-controls-hide-on-move-outside-controls.html |
copy to LayoutTests/media/video-controls-always-visible-when-control-hovered.html |
index bbd27246f8be2dbc2a2796618cdb0ae7283f0646..68162418d20aad1b36112dd10f7aec668bd6bc40 100644 |
--- a/LayoutTests/media/video-controls-hide-on-move-outside-controls.html |
+++ b/LayoutTests/media/video-controls-always-visible-when-control-hovered.html |
@@ -29,21 +29,20 @@ 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); |
+ testExpected("getComputedStyle(controls).opacity", 1); |
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 click on control. After the click |
+ the mouse does not move, so the control is still hovered and it should |
+ remain visible.</p> |
<p>This test only runs in DRT!</p> |
<video id="no-video-media" controls loop oncanplaythrough="runTest()"></video> |