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 src=media-file.js></script> | 7 <script src=media-file.js></script> |
6 <script> | 8 <script> |
7 | 9 |
8 function start() | 10 function start() |
9 { | 11 { |
10 findMediaElement(); | 12 findMediaElement(); |
11 | 13 |
12 waitForEvent("loadstart"); | 14 waitForEvent("loadstart"); |
13 waitForEvent("loadedmetadata"); | 15 waitForEvent("loadedmetadata"); |
14 waitForEvent("loadeddata"); | 16 waitForEvent("loadeddata"); |
15 waitForEvent("abort"); | 17 waitForEvent("abort"); |
16 waitForEvent("emptied"); | 18 waitForEvent("emptied"); |
17 waitForEvent("canplaythrough", testLoad); | 19 waitForEvent("canplaythrough", testLoad); |
(...skipping 16 matching lines...) Expand all Loading... |
34 consoleWrite("<br>** <video> with empty src attribute**"); | 36 consoleWrite("<br>** <video> with empty src attribute**"); |
35 run('video.src = ""'); | 37 run('video.src = ""'); |
36 } | 38 } |
37 </script> | 39 </script> |
38 </head> | 40 </head> |
39 <body onload="start()"> | 41 <body onload="start()"> |
40 <video width=320 height=60 controls></video> | 42 <video width=320 height=60 controls></video> |
41 <p> <video> element with src="" should invoke media element's load
algorithm and should fire 'error' event. Network state should be NETWORK_NO_SOU
RCE and set error to MEDIA_ERR_SRC_NOT_SUPPORTED.</p> | 43 <p> <video> element with src="" should invoke media element's load
algorithm and should fire 'error' event. Network state should be NETWORK_NO_SOU
RCE and set error to MEDIA_ERR_SRC_NOT_SUPPORTED.</p> |
42 </body> | 44 </body> |
43 </html> | 45 </html> |
OLD | NEW |