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