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

Side by Side Diff: LayoutTests/media/track/track-cue-nothing-to-render.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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 consoleWrite(""); 42 consoleWrite("");
43 run("video.currentTime = " + (info[seekedCount])); 43 run("video.currentTime = " + (info[seekedCount]));
44 } 44 }
45 45
46 function loaded() 46 function loaded()
47 { 47 {
48 findMediaElement(); 48 findMediaElement();
49 testTrack = document.querySelector('track'); 49 testTrack = document.querySelector('track');
50 video.src = findMediaFile('video', '../content/counting'); 50 video.src = findMediaFile('video', '../content/counting');
51 waitForEvent('seeked', seeked); 51 waitForEvent('seeked', seeked);
52 waitForEvent('canplaythrough', function() { video.currentTime = .5; }); 52 waitForEventOnce('canplaythrough', function() { video.currentTime = .5; });
53 } 53 }
54 54
55 </script> 55 </script>
56 </head> 56 </head>
57 <body onload="loaded()"> 57 <body onload="loaded()">
58 <video controls > 58 <video controls >
59 <track src="captions-webvtt/captions-gaps.vtt" kind="captions" defau lt> 59 <track src="captions-webvtt/captions-gaps.vtt" kind="captions" defau lt>
60 </video> 60 </video>
61 <p>Test that cues are rendered and removed.</p> 61 <p>Test that cues are rendered and removed.</p>
62 </body> 62 </body>
63 </html> 63 </html>
OLDNEW
« no previous file with comments | « LayoutTests/media/track/track-css-matching-timestamps.html ('k') | LayoutTests/media/track/track-cue-rendering.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698