OLD | NEW |
1 > | 1 > |
2 | 2 |
3 <script> | 3 <script> |
4 if (window.internals) | 4 if (window.internals) |
5 { | 5 { |
6 // This should not be necessary, but due to crbug.com/372245 sty
le | 6 // This should not be necessary, but due to crbug.com/372245 sty
le |
7 // gets dirtied during layout in LayoutTextTrackContainer which | 7 // gets dirtied during layout in LayoutTextTrackContainer which |
8 // causes assertions to fail when Document::scrollingElement is | 8 // causes assertions to fail when Document::scrollingElement is |
9 // queried during compositing update (a valid request). | 9 // queried during compositing update (a valid request). |
10 window.internals.settings.setCompositorWorkerEnabled(false); | 10 window.internals.settings.setCompositorWorkerEnabled(false); |
11 } | 11 } |
12 </script> | 12 </script> |
13 <script src=../media-file.js></script> | 13 <script src=../media-file.js></script> |
14 <script></script> | 14 <script></script> |
15 <script></script> | 15 <script></script> |
16 <script>setTimeout("try { var v = document.querySelector('video'); v.parentNode.
removeChild(v); } catch(e) {}", 61);</script> | 16 <script>setTimeout("try { var v = document.querySelector('video'); v.parentNode.
removeChild(v); } catch(e) {}", 61);</script> |
17 <meta><script src=../video-test.js></script> | 17 <meta> |
| 18 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
| 19 (Please avoid writing new tests using video-test.js) --> |
| 20 <script src=../video-test.js></script> |
18 <script> | 21 <script> |
19 | 22 |
20 { | 23 { |
21 } | 24 } |
22 | 25 |
23 function metadataTrackLoaded() | 26 function metadataTrackLoaded() |
24 { | 27 { |
25 track2 = document.createElement('track'); | 28 track2 = document.createElement('track'); |
26 video.appendChild(track2); | 29 video.appendChild(track2); |
27 setTimeout("endTest()", 100); | 30 setTimeout("endTest()", 100); |
28 } | 31 } |
29 | 32 |
30 function canplaythrough() | 33 function canplaythrough() |
31 { | 34 { |
32 track1.track.mode = "hidden"; | 35 track1.track.mode = "hidden"; |
33 setTimeout("endTest()", 100); | 36 setTimeout("endTest()", 100); |
34 } | 37 } |
35 | 38 |
36 function start() | 39 function start() |
37 { | 40 { |
38 consoleWrite("<feOffset>"); | 41 consoleWrite("<feOffset>"); |
39 findMediaElement(); | 42 findMediaElement(); |
40 | 43 |
41 track1 = document.querySelectorAll('track')[0]; | 44 track1 = document.querySelectorAll('track')[0]; |
42 testExpected("track1.readyState", HTMLTrackElement.NONE); | 45 testExpected("track1.readyState", HTMLTrackElement.NONE); |
43 testExpected("track1.track.mode", "disabled"); | 46 testExpected("track1.track.mode", "disabled"); |
44 | 47 |
45 video.src = findMediaFile("video", "../content/test"); | 48 video.src = findMediaFile("video", "../content/test"); |
46 consoleWrite(""); | 49 consoleWrite(""); |
47 } | 50 } |
48 </script> | 51 </script> |
49 <body onload="start()"> | 52 <body onload="start()"> |
50 <command><aside><kbd><video oncanplaythrough="canplaythrough()" > | 53 <command><aside><kbd><video oncanplaythrough="canplaythrough()" > |
51 <track src="captions-webvtt/metadata.vtt" onload="metadataTrackLoade
d()"> | 54 <track src="captions-webvtt/metadata.vtt" onload="metadataTrackLoade
d()"> |
OLD | NEW |