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 src=media-file.js></script> | 7 <script src=media-file.js></script> |
8 <script> | 8 <script> |
9 | 9 |
10 function start() | 10 function start() |
11 { | 11 { |
12 findMediaElement(); | 12 findMediaElement(); |
13 | 13 |
14 waitForEvent("loadstart"); | 14 waitForEvent("loadstart"); |
(...skipping 21 matching lines...) Expand all Loading... |
36 consoleWrite("<br>** <video> with empty src attribute**"); | 36 consoleWrite("<br>** <video> with empty src attribute**"); |
37 run('video.src = ""'); | 37 run('video.src = ""'); |
38 } | 38 } |
39 </script> | 39 </script> |
40 </head> | 40 </head> |
41 <body onload="start()"> | 41 <body onload="start()"> |
42 <video width=320 height=60 controls></video> | 42 <video width=320 height=60 controls></video> |
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> | 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> |
44 </body> | 44 </body> |
45 </html> | 45 </html> |
OLD | NEW |