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