OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <title>Test that a media url with fragment loads properly</title> |
3 <head> | 3 <script src="../resources/testharness.js"></script> |
4 <script src=media-file.js></script> | 4 <script src="../resources/testharnessreport.js"></script> |
5 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 | 5 <script src="media-file.js"></script> |
6 (Please avoid writing new tests using video-test.js) --> | 6 <video></video> |
7 <script src=video-test.js></script> | 7 <script> |
8 <script> | 8 async_test(function(t) { |
9 function finish() | 9 var video = document.querySelector("video"); |
10 { | 10 video.onloadeddata = t.step_func_done(); |
11 logResult(event.type == "loadeddata", "MediaPlayer extracted ext
ension from src url."); | 11 video.onerror = t.unreached_func(); |
12 consoleWrite(""); | 12 video.src = findMediaFile("video", "content/test") + "#01.00.xyz"; |
13 endTest(); | 13 }); |
14 } | 14 </script> |
15 | |
16 | |
17 function start() | |
18 { | |
19 findMediaElement(); | |
20 waitForEventAndEnd('loadeddata', finish); | |
21 waitForEvent('error', finish); | |
22 video.src = findMediaFile("video", "content/test") + "#01.00.xyz
"; | |
23 } | |
24 </script> | |
25 | |
26 </head> | |
27 <body onload="start()"> | |
28 | |
29 <video controls ></video> | |
30 | |
31 </body> | |
32 </html> | |
OLD | NEW |