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

Side by Side Diff: LayoutTests/media/track/track-cue-rendering.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>
11 11
12 var testTrack; 12 var testTrack;
13 var testCueDisplayBox; 13 var testCueDisplayBox;
14 var seekedCount = 0; 14 var seekedCount = 0;
15 var info = [ "Lorem", "ipsum", "dolor", "sit" ]; 15 var info = [ "Lorem", "ipsum", "dolor", "sit" ];
16 16
17 function testFontSize(width, height) 17 function testFontSize(width, height)
18 { 18 {
19 run("video.width = " + width); 19 run("video.width = " + width);
20 run("video.height = " + height); 20 run("video.height = " + height);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 } 64 }
65 } 65 }
66 66
67 function loaded() 67 function loaded()
68 { 68 {
69 consoleWrite("Test that default positioned TextTrack's cues are rend ered correctly."); 69 consoleWrite("Test that default positioned TextTrack's cues are rend ered correctly.");
70 findMediaElement(); 70 findMediaElement();
71 testTrack = document.querySelector('track'); 71 testTrack = document.querySelector('track');
72 video.src = findMediaFile('video', '../content/test'); 72 video.src = findMediaFile('video', '../content/test');
73 waitForEvent('seeked', seeked); 73 waitForEvent('seeked', seeked);
74 waitForEvent('canplaythrough', function() { video.currentTime = .5; }); 74 waitForEventOnce('canplaythrough', function() { video.currentTime = .5; });
75 } 75 }
76 76
77 </script> 77 </script>
78 </head> 78 </head>
79 <body onload="loaded()"> 79 <body onload="loaded()">
80 <video controls > 80 <video controls >
81 <track src="captions-webvtt/captions.vtt" kind="captions" default> 81 <track src="captions-webvtt/captions.vtt" kind="captions" default>
82 </video> 82 </video>
83 </body> 83 </body>
84 </html> 84 </html>
OLDNEW
« no previous file with comments | « LayoutTests/media/track/track-cue-nothing-to-render.html ('k') | LayoutTests/media/track/track-cue-rendering-rtl.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698