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

Side by Side Diff: third_party/WebKit/LayoutTests/media/video-controls-mouse-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, 10 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 a mouse events on the controls will not be seen by the vi deo element.</p> 8 <p>This tests that a mouse events on the controls will not be seen by the vi deo element.</p>
9 <p>Also tests keyboard input.</p> 9 <p>Also tests keyboard input.</p>
10 <script src=media-file.js></script> 10 <script src=media-file.js></script>
11 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956
12 (Please avoid writing new tests using video-test.js) -->
11 <script src=video-test.js></script> 13 <script src=video-test.js></script>
12 <script src=media-controls.js></script> 14 <script src=media-controls.js></script>
13 <script> 15 <script>
14 waitForEventAndFail("click"); 16 waitForEventAndFail("click");
15 waitForEventAndFail("dblclick"); 17 waitForEventAndFail("dblclick");
16 waitForEventAndFail("mousedown"); 18 waitForEventAndFail("mousedown");
17 waitForEventAndFail("mouseup"); 19 waitForEventAndFail("mouseup");
18 waitForEventAndFail("keydown"); 20 waitForEventAndFail("keydown");
19 21
20 waitForEventAndEnd("loadeddata", function() 22 waitForEventAndEnd("loadeddata", function()
(...skipping 29 matching lines...) Expand all
50 eventSender.mouseMoveTo(coords[0]+10, coords[1]+10); 52 eventSender.mouseMoveTo(coords[0]+10, coords[1]+10);
51 // Expect another as we move back to the slider. 53 // Expect another as we move back to the slider.
52 waitForEventOnce("mousemove"); 54 waitForEventOnce("mousemove");
53 eventSender.mouseMoveTo(coords[0], coords[1]); 55 eventSender.mouseMoveTo(coords[0], coords[1]);
54 56
55 // The above positioned the slider under the mouse. Click 57 // The above positioned the slider under the mouse. Click
56 // to begin a drag. 58 // to begin a drag.
57 eventSender.mouseDown(); 59 eventSender.mouseDown();
58 60
59 waitForEventAndFail("mousemove") 61 waitForEventAndFail("mousemove")
60 62
61 // Check that the timeline also captures mousemove if the 63 // Check that the timeline also captures mousemove if the
62 // slider is being dragged. 64 // slider is being dragged.
63 eventSender.mouseMoveTo(coords[0]+10, coords[1]+10) 65 eventSender.mouseMoveTo(coords[0]+10, coords[1]+10)
64 } 66 }
65 }); 67 });
66 video.src = findMediaFile("video", "content/test"); 68 video.src = findMediaFile("video", "content/test");
67 </script> 69 </script>
68 </body> 70 </body>
69 </html> 71 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698