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

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

Issue 453493002: Improve detection of touch events when hiding media controls. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@autoHideControls
Patch Set: Revert Patch Set 8 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
« no previous file with comments | « no previous file | LayoutTests/media/video-controls-visibility-multimodal-mouse-after-touch.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/video-controls-hide-after-touch-on-control.html
diff --git a/LayoutTests/media/video-controls-hide-after-touch-on-control.html b/LayoutTests/media/video-controls-hide-after-touch-on-control.html
index 7715602593f57267742396af3b1e56fa46035fd3..ee48ddf11e92bc9ccc30e05882341cea492ac4e9 100644
--- a/LayoutTests/media/video-controls-hide-after-touch-on-control.html
+++ b/LayoutTests/media/video-controls-hide-after-touch-on-control.html
@@ -20,13 +20,11 @@ function runTest()
if (!window.testRunner)
return;
- // Click the play button.
- var playCoords = mediaControlsButtonCoordinates(video, "play-button");
- var clickX = playCoords[0];
- var clickY = playCoords[1];
- eventSender.mouseMoveTo(clickX, clickY);
- eventSender.mouseDown();
- eventSender.mouseUp();
+ // Tap the play button
+ var coords = mediaControlsButtonCoordinates(video, "play-button");
+ eventSender.gestureTapDown(coords[0], coords[1]);
+ eventSender.gestureShowPress(coords[0], coords[1]);
+ eventSender.gestureTap(coords[0], coords[1]);
testExpected("video.paused", false);
runAfterHideMediaControlsTimerFired(function()
@@ -46,7 +44,6 @@ function runTest()
<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>
« no previous file with comments | « no previous file | LayoutTests/media/video-controls-visibility-multimodal-mouse-after-touch.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698