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

Side by Side Diff: LayoutTests/media/track/track-cues-sorted-before-dispatch.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> 8 <script>
9 var videoCanPlayThrough = false; 9 var videoCanPlayThrough = false;
10 var trackLoaded = false; 10 var trackLoaded = false;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 consoleWrite("Cue event: " + dispatchedEvents[i].type + 64 consoleWrite("Cue event: " + dispatchedEvents[i].type +
65 " id: " + dispatchedEvents[i].cue.id + 65 " id: " + dispatchedEvents[i].cue.id +
66 " time: " + dispatchedEvents[i].time); 66 " time: " + dispatchedEvents[i].time);
67 } 67 }
68 68
69 endTest(); 69 endTest();
70 } 70 }
71 71
72 waitForEvent('ended', logEndTest); 72 waitForEvent('ended', logEndTest);
73 73
74 waitForEvent('canplaythrough', function() { 74 waitForEventOnce('canplaythrough', function() {
75 video.currentTime = 5.00; 75 video.currentTime = 5.00;
76 videoCanPlayThrough = true; 76 videoCanPlayThrough = true;
77 77
78 runTests(); 78 runTests();
79 }); 79 });
80 80
81 </script> 81 </script>
82 </head> 82 </head>
83 <body onload="bodyLoaded()"> 83 <body onload="bodyLoaded()">
84 <p>Tests that all events events are triggered in chronological order.</p > 84 <p>Tests that all events events are triggered in chronological order.</p >
85 <video controls> 85 <video controls>
86 <track id="testTrack" src="captions-webvtt/sorted-dispatch.vtt" onlo ad="loaded()" default> 86 <track id="testTrack" src="captions-webvtt/sorted-dispatch.vtt" onlo ad="loaded()" default>
87 </video> 87 </video>
88 </body> 88 </body>
89 </html> 89 </html>
OLDNEW
« no previous file with comments | « LayoutTests/media/track/track-cues-seeking.html ('k') | LayoutTests/media/track/track-remove-by-setting-innerHTML.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698