| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <body> | 2 <body> |
| 3 <video controls></video> | 3 <video controls></video> |
| 4 | 4 |
| 5 <p>Video has no src. Test that the playing event is not dispatched.</p> | 5 <p>Video has no src. Test that the playing event is not dispatched.</p> |
| 6 | 6 |
| 7 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
| 8 (Please avoid writing new tests using video-test.js) --> |
| 7 <script src=video-test.js></script> | 9 <script src=video-test.js></script> |
| 8 <script> | 10 <script> |
| 9 waitForEventAndFail('playing'); | 11 waitForEventAndFail('playing'); |
| 10 | 12 |
| 11 waitForEvent("loadstart"); | 13 waitForEvent("loadstart"); |
| 12 waitForEvent("timeupdate"); | 14 waitForEvent("timeupdate"); |
| 13 waitForEvent("waiting"); | 15 waitForEvent("waiting"); |
| 14 | 16 |
| 15 function onpause() | 17 function onpause() |
| 16 { | 18 { |
| 17 testExpected("video.networkState", HTMLMediaElement.NETWORK_EMPTY); | 19 testExpected("video.networkState", HTMLMediaElement.NETWORK_EMPTY); |
| 18 endTest(); | 20 endTest(); |
| 19 consoleWrite(""); | 21 consoleWrite(""); |
| 20 } | 22 } |
| 21 | 23 |
| 22 waitForEvent("pause", onpause); | 24 waitForEvent("pause", onpause); |
| 23 | 25 |
| 24 run("video.play()"); | 26 run("video.play()"); |
| 25 run("video.pause()"); | 27 run("video.pause()"); |
| 26 </script> | 28 </script> |
| 27 </body> | 29 </body> |
| 28 </html> | 30 </html> |
| OLD | NEW |