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