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 | 7 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 |
8 (Please avoid writing new tests using video-test.js) --> | 8 (Please avoid writing new tests using video-test.js) --> |
9 <script src=video-test.js></script> | 9 <script src=video-test.js></script> |
10 <script> | 10 <script> |
11 waitForEventAndFail('playing'); | 11 waitForEventAndFail('playing'); |
12 | 12 |
13 waitForEvent("loadstart"); | 13 waitForEvent("loadstart"); |
14 waitForEvent("timeupdate"); | 14 waitForEvent("timeupdate"); |
15 waitForEvent("waiting"); | 15 waitForEvent("waiting"); |
16 | 16 |
17 function onpause() | 17 function onpause() |
18 { | 18 { |
19 testExpected("video.networkState", HTMLMediaElement.NETWORK_EMPTY); | 19 testExpected("video.networkState", HTMLMediaElement.NETWORK_EMPTY); |
20 endTest(); | 20 endTest(); |
21 consoleWrite(""); | 21 consoleWrite(""); |
22 } | 22 } |
23 | 23 |
24 waitForEvent("pause", onpause); | 24 waitForEvent("pause", onpause); |
25 | 25 |
26 run("video.play()"); | 26 run("video.play()"); |
27 run("video.pause()"); | 27 run("video.pause()"); |
28 </script> | 28 </script> |
29 </body> | 29 </body> |
30 </html> | 30 </html> |
OLD | NEW |