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

Side by Side Diff: third_party/WebKit/LayoutTests/media/video-controls-touch-events-captured.html

Issue 1715303002: Add TODOs to convert from video-test.js to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add bug ref Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 4
5 </head> 5 </head>
6 <body> 6 <body>
7 <video controls></video> 7 <video controls></video>
8 <p>This tests that touch events on the controls will not be seen by the vide o element.</p> 8 <p>This tests that touch events on the controls will not be seen by the vide o element.</p>
9 <script src=media-file.js></script> 9 <script src=media-file.js></script>
10 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956
11 (Please avoid writing new tests using video-test.js) -->
10 <script src=video-test.js></script> 12 <script src=video-test.js></script>
11 <script src=media-controls.js></script> 13 <script src=media-controls.js></script>
12 <script> 14 <script>
13 waitForEventAndFail("click"); 15 waitForEventAndFail("click");
14 waitForEventAndFail("dblclick"); 16 waitForEventAndFail("dblclick");
15 waitForEventAndFail("touchstart"); 17 waitForEventAndFail("touchstart");
16 waitForEventAndFail("touchend"); 18 waitForEventAndFail("touchend");
17 waitForEventAndFail("touchmove"); 19 waitForEventAndFail("touchmove");
18 20
19 waitForEventAndEnd("loadeddata", function() 21 waitForEventAndEnd("loadeddata", function()
(...skipping 30 matching lines...) Expand all
50 // Check that the timeline also captures moves 52 // Check that the timeline also captures moves
51 eventSender.updateTouchPoint(0, coords[0]+10, coords[1]+10) 53 eventSender.updateTouchPoint(0, coords[0]+10, coords[1]+10)
52 eventSender.touchMove(); 54 eventSender.touchMove();
53 eventSender.cancelTouchPoint(0); 55 eventSender.cancelTouchPoint(0);
54 56
55 } 57 }
56 }); 58 });
57 video.src = findMediaFile("video", "content/test"); 59 video.src = findMediaFile("video", "content/test");
58 </script> 60 </script>
59 </body> 61 </body>
60 </html> 62 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698