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

Side by Side Diff: LayoutTests/media/track/track-cue-rendering-rtl.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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 { 58 {
59 consoleWrite("Test that directionality is set correctly on cues."); 59 consoleWrite("Test that directionality is set correctly on cues.");
60 testTrack = document.querySelector('track'); 60 testTrack = document.querySelector('track');
61 61
62 findMediaElement(); 62 findMediaElement();
63 video.src = findMediaFile('video', '../content/test'); 63 video.src = findMediaFile('video', '../content/test');
64 64
65 consoleWrite(""); 65 consoleWrite("");
66 consoleWrite("** RTL cues alternate with LTR cues **"); 66 consoleWrite("** RTL cues alternate with LTR cues **");
67 waitForEvent('seeked', seeked); 67 waitForEvent('seeked', seeked);
68 waitForEvent('canplaythrough', function() { video.currentTime = .25; }); 68 waitForEventOnce('canplaythrough', function() { video.currentTime = .25; });
69 } 69 }
70 </script> 70 </script>
71 </head> 71 </head>
72 <body onload="loaded()"> 72 <body onload="loaded()">
73 <video controls > 73 <video controls >
74 <track src="captions-webvtt/captions-rtl.vtt" kind="captions" defaul t> 74 <track src="captions-webvtt/captions-rtl.vtt" kind="captions" defaul t>
75 </video> 75 </video>
76 </body> 76 </body>
77 </html> 77 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698