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

Side by Side Diff: LayoutTests/media/track/track-cues-pause-on-exit.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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 runTests(); 60 runTests();
61 } 61 }
62 62
63 function bodyLoaded() 63 function bodyLoaded()
64 { 64 {
65 findMediaElement(); 65 findMediaElement();
66 video.src = findMediaFile("video", "../content/test"); 66 video.src = findMediaFile("video", "../content/test");
67 } 67 }
68 68
69 waitForEvent('canplaythrough', function() { 69 waitForEventOnce('canplaythrough', function() {
70 video.currentTime = 4.00; 70 video.currentTime = 4.00;
71 videoCanPlayThrough = true; 71 videoCanPlayThrough = true;
72 72
73 runTests(); 73 runTests();
74 }); 74 });
75 75
76 </script> 76 </script>
77 </head> 77 </head>
78 <body onload="bodyLoaded()"> 78 <body onload="bodyLoaded()">
79 <p>Tests that the video is paused after cues that have pause-on-exit fla g are processed</p> 79 <p>Tests that the video is paused after cues that have pause-on-exit fla g are processed</p>
80 <video controls> 80 <video controls>
81 <track id="testTrack" src="captions-webvtt/simple-captions.vtt" onlo ad="loaded()" default> 81 <track id="testTrack" src="captions-webvtt/simple-captions.vtt" onlo ad="loaded()" default>
82 </video> 82 </video>
83 </body> 83 </body>
84 </html> 84 </html>
OLDNEW
« no previous file with comments | « LayoutTests/media/track/track-cues-missed.html ('k') | LayoutTests/media/track/track-cues-seeking.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698