OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Add <source> after removing failed candidate</title> | 4 <title>Add <source> after removing failed candidate</title> |
| 5 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
| 6 (Please avoid writing new tests using video-test.js) --> |
5 <script src=video-test.js></script> | 7 <script src=video-test.js></script> |
6 <script src=media-file.js></script> | 8 <script src=media-file.js></script> |
7 <script> | 9 <script> |
8 function error() | 10 function error() |
9 { | 11 { |
10 findMediaElement(); | 12 findMediaElement(); |
11 video.removeChild(video.firstChild); | 13 video.removeChild(video.firstChild); |
12 var source = document.createElement("source"); | 14 var source = document.createElement("source"); |
13 source.src = findMediaFile("video", "content/test"); | 15 source.src = findMediaFile("video", "content/test"); |
14 video.appendChild(source); | 16 video.appendChild(source); |
15 waitForEventAndEnd("loadedmetadata"); | 17 waitForEventAndEnd("loadedmetadata"); |
16 } | 18 } |
17 </script> | 19 </script> |
18 </head> | 20 </head> |
19 | 21 |
20 <body> | 22 <body> |
21 <video><source onerror="error()"></video> | 23 <video><source onerror="error()"></video> |
22 </body> | 24 </body> |
23 </html> | 25 </html> |
OLD | NEW |