| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 5 | 5 |
| 6 <script src=../media-file.js></script> | 6 <script src=../media-file.js></script> |
| 7 <script src=../video-test.js></script> | 7 <script src=../video-test.js></script> |
| 8 <script src=../media-controls.js></script> | 8 <script src=../media-controls.js></script> |
| 9 | 9 |
| 10 <script> | 10 <script> |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 consoleWrite("Test that TextTrack's cues are rendered correctly when
the snap to lines flag is not set."); | 87 consoleWrite("Test that TextTrack's cues are rendered correctly when
the snap to lines flag is not set."); |
| 88 | 88 |
| 89 findMediaElement(); | 89 findMediaElement(); |
| 90 testTrack = document.querySelector('track'); | 90 testTrack = document.querySelector('track'); |
| 91 video.src = findMediaFile('video', '../content/test'); | 91 video.src = findMediaFile('video', '../content/test'); |
| 92 | 92 |
| 93 // In Chromium it is the enclosure element, which provides the contr
ols height, otherwise the panel; | 93 // In Chromium it is the enclosure element, which provides the contr
ols height, otherwise the panel; |
| 94 // both are the second child in the shadow DOM. | 94 // both are the second child in the shadow DOM. |
| 95 controlsPanelElement = internals.shadowRoot(video).firstChild.firstC
hild; | 95 controlsPanelElement = internals.shadowRoot(video).firstChild.firstC
hild; |
| 96 | 96 |
| 97 waitForEvent('canplaythrough', function() { | 97 waitForEventOnce('canplaythrough', function() { |
| 98 cueDisplayContainer = textTrackDisplayElement(video); | 98 cueDisplayContainer = textTrackDisplayElement(video); |
| 99 testInitialContainer(); | 99 testInitialContainer(); |
| 100 runNextTestCase(); | 100 runNextTestCase(); |
| 101 }); | 101 }); |
| 102 } | 102 } |
| 103 | 103 |
| 104 </script> | 104 </script> |
| 105 </head> | 105 </head> |
| 106 <body onload="loaded()"> | 106 <body onload="loaded()"> |
| 107 <video controls> | 107 <video controls> |
| 108 <track src="captions-webvtt/captions-snap-to-lines-not-set.vtt" kind
="captions" default> | 108 <track src="captions-webvtt/captions-snap-to-lines-not-set.vtt" kind
="captions" default> |
| 109 </video> | 109 </video> |
| 110 </body> | 110 </body> |
| 111 </html> | 111 </html> |
| OLD | NEW |