OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>no usable <source> test</title> | 4 <title>no usable <source> test</title> |
5 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 | 5 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 |
6 (Please avoid writing new tests using video-test.js) --> | 6 (Please avoid writing new tests using video-test.js) --> |
7 <script src=video-test.js></script> | 7 <script src=video-test.js></script> |
8 <script> | 8 <script> |
9 document.addEventListener("error", errorEvent, true); | 9 document.addEventListener("error", errorEvent, true); |
10 | 10 |
11 function errorEvent(evt) | 11 function errorEvent(evt) |
12 { | 12 { |
13 findMediaElement(); | 13 findMediaElement(); |
14 consoleWrite("++ ERROR, src = " + relativeURL(event.target.src) + ",
type = \"" + event.target.type + "\""); | 14 consoleWrite("++ ERROR, src = " + relativeURL(event.target.src) + ",
type = \"" + event.target.type + "\""); |
15 testExpected("event.target.tagName", "SOURCE", "=="); | 15 testExpected("event.target.tagName", "SOURCE", "=="); |
(...skipping 25 matching lines...) Expand all Loading... |
41 <video controls> | 41 <video controls> |
42 <source src="test.mp4" type="audio/x-chicken-face"> | 42 <source src="test.mp4" type="audio/x-chicken-face"> |
43 <source src="test.ogv" type="video/x-higglety-pigglety"> | 43 <source src="test.ogv" type="video/x-higglety-pigglety"> |
44 <source src="doesnotexist.mp4"> | 44 <source src="doesnotexist.mp4"> |
45 </video> | 45 </video> |
46 | 46 |
47 <p>1. Test that no usable <source> element leaves the media element wi
th | 47 <p>1. Test that no usable <source> element leaves the media element wi
th |
48 networkState == NETWORK_NO_SOURCE</p> | 48 networkState == NETWORK_NO_SOURCE</p> |
49 </body> | 49 </body> |
50 </html> | 50 </html> |
OLD | NEW |