OLD | NEW |
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 Loading... |
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> |
OLD | NEW |