Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(495)

Side by Side Diff: LayoutTests/media/track/track-cue-rendering-snap-to-lines-not-set.html

Issue 17395006: Fix LayoutTests that assume canplay, playing, and canplaythrough will only fire once. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix event-attributes expectations. Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « LayoutTests/media/track/track-cue-rendering-rtl.html ('k') | LayoutTests/media/track/track-cues-missed.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698