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> |
(...skipping 27 matching lines...) Expand all Loading... |
38 eventSender.keyDown('A'); | 38 eventSender.keyDown('A'); |
39 | 39 |
40 // Click the timeline - this tests that multilevel shadow DOM el
ements work | 40 // Click the timeline - this tests that multilevel shadow DOM el
ements work |
41 coords = mediaControlsButtonCoordinates(video, "timeline"); | 41 coords = mediaControlsButtonCoordinates(video, "timeline"); |
42 eventSender.mouseMoveTo(coords[0], coords[1]); | 42 eventSender.mouseMoveTo(coords[0], coords[1]); |
43 | 43 |
44 eventSender.mouseDown(); | 44 eventSender.mouseDown(); |
45 eventSender.mouseUp(); | 45 eventSender.mouseUp(); |
46 eventSender.keyDown('A'); | 46 eventSender.keyDown('A'); |
47 | 47 |
| 48 // The above positioned the slider under the mouse. Click |
| 49 // to begin a drag. |
| 50 eventSender.mouseDown(); |
| 51 |
48 waitForEventAndFail("mousemove") | 52 waitForEventAndFail("mousemove") |
49 | 53 |
50 // Check that the timeline also captures mousemove | 54 // Check that the timeline also captures mousemove if the |
| 55 // slider is being dragged. |
51 eventSender.mouseMoveTo(coords[0]+10, coords[1]+10) | 56 eventSender.mouseMoveTo(coords[0]+10, coords[1]+10) |
52 } | 57 } |
53 }); | 58 }); |
54 video.src = findMediaFile("video", "content/test"); | 59 video.src = findMediaFile("video", "content/test"); |
55 </script> | 60 </script> |
56 </body> | 61 </body> |
57 </html> | 62 </html> |
OLD | NEW |