OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="/js-test-resources/js-test.js"></script> | 4 <script src="/js-test-resources/js-test.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="/media-resources/video-test.js"></script> | 7 <script src="/media-resources/video-test.js"></script> |
6 <script src="/w3c/resources/testharness.js"></script> | 8 <script src="/w3c/resources/testharness.js"></script> |
7 <script src="/w3c/resources/testharnessreport.js"></script> | 9 <script src="/w3c/resources/testharnessreport.js"></script> |
8 <script src="mediasource-util.js"></script> | 10 <script src="mediasource-util.js"></script> |
9 </head> | 11 </head> |
10 <body> | 12 <body> |
11 <div id="log"></div> | 13 <div id="log"></div> |
12 <script> | 14 <script> |
13 window.jsTestIsAsync = true; | 15 window.jsTestIsAsync = true; |
14 | 16 |
(...skipping 24 matching lines...) Expand all Loading... |
39 test.done(); | 41 test.done(); |
40 } | 42 } |
41 | 43 |
42 ms.addEventListener("sourceopen", test.step_func(sourceOpened)); | 44 ms.addEventListener("sourceopen", test.step_func(sourceOpened)); |
43 video.addEventListener("durationchange", test.step_func(durationCh
anged)); | 45 video.addEventListener("durationchange", test.step_func(durationCh
anged)); |
44 video.src = window.URL.createObjectURL(ms); | 46 video.src = window.URL.createObjectURL(ms); |
45 }, "Tests that the MediaSource keeps the HTMLMediaElement alive."); | 47 }, "Tests that the MediaSource keeps the HTMLMediaElement alive."); |
46 </script> | 48 </script> |
47 </body> | 49 </body> |
48 </html> | 50 </html> |
OLD | NEW |