Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Unified Diff: LayoutTests/media/video-controls-hide-after-touch-on-control.html

Issue 441193003: Hide video controls after touch when hideMediaControlsTimerFired fires. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: /s/TODO/FIXME Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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()
{
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>

Powered by Google App Engine
This is Rietveld 408576698