OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
| 4 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
| 5 (Please avoid writing new tests using video-test.js) --> |
4 <script src=video-test.js></script> | 6 <script src=video-test.js></script> |
5 <script> | 7 <script> |
6 var state; | 8 var state; |
7 | 9 |
8 function someTimeLater() | 10 function someTimeLater() |
9 { | 11 { |
10 testExpected("state", "load() with missing 'src'"); | 12 testExpected("state", "load() with missing 'src'"); |
11 testExpected("videos[0].error", null); | 13 testExpected("videos[0].error", null); |
12 testExpected("videos[0].networkState", HTMLMediaElement.NETWORK_
EMPTY); | 14 testExpected("videos[0].networkState", HTMLMediaElement.NETWORK_
EMPTY); |
13 testExpected("videos[0].src", ""); | 15 testExpected("videos[0].src", ""); |
(...skipping 21 matching lines...) Expand all Loading... |
35 | 37 |
36 setTimeout(someTimeLater, 100) ; | 38 setTimeout(someTimeLater, 100) ; |
37 } | 39 } |
38 </script> | 40 </script> |
39 </head> | 41 </head> |
40 | 42 |
41 <body onload="setTimeout(test, 100)"> | 43 <body onload="setTimeout(test, 100)"> |
42 <video width=320 height=60 controls onerror="errorEvent()"></video> | 44 <video width=320 height=60 controls onerror="errorEvent()"></video> |
43 </body> | 45 </body> |
44 </html> | 46 </html> |
OLD | NEW |