| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <body> | 2 <body> |
| 3 | 3 |
| 4 <video controls></video> | 4 <video controls></video> |
| 5 | 5 |
| 6 <p> | 6 <p> |
| 7 Test 'timeupdate' events are posted while playing but not while paused. | 7 Test 'timeupdate' events are posted while playing but not while paused. |
| 8 </p> | 8 </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 | 10 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 |
| 11 (Please avoid writing new tests using video-test.js) --> | 11 (Please avoid writing new tests using video-test.js) --> |
| 12 <script src=video-test.js></script> | 12 <script src=video-test.js></script> |
| 13 <script> | 13 <script> |
| 14 setSrcByTagName("video", findMediaFile("video", "content/test")); | 14 setSrcByTagName("video", findMediaFile("video", "content/test")); |
| 15 | 15 |
| 16 var timeupdateEventCount = 0; | 16 var timeupdateEventCount = 0; |
| 17 var countWhilePlaying = 0; | 17 var countWhilePlaying = 0; |
| 18 | 18 |
| 19 function someTimeLater() | 19 function someTimeLater() |
| 20 { | 20 { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 49 waitForEvent("pause", pause); | 49 waitForEvent("pause", pause); |
| 50 waitForEvent("play"); | 50 waitForEvent("play"); |
| 51 waitForEvent("playing", playing); | 51 waitForEvent("playing", playing); |
| 52 | 52 |
| 53 run("video.play()"); | 53 run("video.play()"); |
| 54 consoleWrite(""); | 54 consoleWrite(""); |
| 55 </script> | 55 </script> |
| 56 | 56 |
| 57 </body> | 57 </body> |
| 58 </html> | 58 </html> |
| OLD | NEW |