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> |