| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src=media-file.js></script> | 4 <script src=media-file.js></script> |
| 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 function finish() | 9 function finish() |
| 10 { | 10 { |
| 11 logResult(event.type == "loadeddata", "MediaPlayer extracted ext
ension from src url."); | 11 logResult(event.type == "loadeddata", "MediaPlayer extracted ext
ension from src url."); |
| 12 consoleWrite(""); | 12 consoleWrite(""); |
| 13 endTest(); | 13 endTest(); |
| 14 } | 14 } |
| 15 | 15 |
| 16 | 16 |
| 17 function start() | 17 function start() |
| 18 { | 18 { |
| 19 findMediaElement(); | 19 findMediaElement(); |
| 20 waitForEventAndEnd('loadeddata', finish); | 20 waitForEventAndEnd('loadeddata', finish); |
| 21 waitForEvent('error', finish); | 21 waitForEvent('error', finish); |
| 22 video.src = findMediaFile("video", "content/test") + "#01.00.xyz
"; | 22 video.src = findMediaFile("video", "content/test") + "#01.00.xyz
"; |
| 23 } | 23 } |
| 24 </script> | 24 </script> |
| 25 | 25 |
| 26 </head> | 26 </head> |
| 27 <body onload="start()"> | 27 <body onload="start()"> |
| 28 | 28 |
| 29 <video controls ></video> | 29 <video controls ></video> |
| 30 | 30 |
| 31 </body> | 31 </body> |
| 32 </html> | 32 </html> |
| OLD | NEW |