| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>load() and the <source> element</title> | 4 <title>load() and the <source> element</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 src=media-file.js></script> | 8 <script src=media-file.js></script> |
| 9 <script> | 9 <script> |
| 10 var sources = []; | 10 var sources = []; |
| 11 var count = 0; | 11 var count = 0; |
| 12 | 12 |
| 13 function canplaythrough() | 13 function canplaythrough() |
| 14 { | 14 { |
| 15 testExpected("stripExtension(relativeURL(video.currentSrc))", re
lativeURL(stripExtension(sources[1]))); | 15 testExpected("stripExtension(relativeURL(video.currentSrc))", re
lativeURL(stripExtension(sources[1]))); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 waitForEvent("canplaythrough", canplaythrough); | 54 waitForEvent("canplaythrough", canplaythrough); |
| 55 waitForEvent("error"); | 55 waitForEvent("error"); |
| 56 } | 56 } |
| 57 </script> | 57 </script> |
| 58 </head> | 58 </head> |
| 59 <body onload="setup()"> | 59 <body onload="setup()"> |
| 60 <video controls width=300 ></video> | 60 <video controls width=300 ></video> |
| 61 <p>Test that the resource selection algorithm is restarted when load() i
s called, and that all <source> elements are reconsidered.</p> | 61 <p>Test that the resource selection algorithm is restarted when load() i
s called, and that all <source> elements are reconsidered.</p> |
| 62 </body> | 62 </body> |
| 63 </html> | 63 </html> |
| OLD | NEW |