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

Side by Side Diff: LayoutTests/media/video-seek-by-small-increment.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 <script src=media-file.js></script> 4 <script src=media-file.js></script>
5 <script src=video-test.js></script> 5 <script src=video-test.js></script>
6 6
7 <script> 7 <script>
8 var seekedEventCount = 0; 8 var seekedEventCount = 0;
9 var increment = 0; 9 var increment = 0;
10 10
(...skipping 24 matching lines...) Expand all
35 var increment = seekIncrement(); 35 var increment = seekIncrement();
36 consoleWrite("<br>** Seeking by " + increment); 36 consoleWrite("<br>** Seeking by " + increment);
37 video.currentTime += increment; 37 video.currentTime += increment;
38 } 38 }
39 39
40 function start() 40 function start()
41 { 41 {
42 findMediaElement(); 42 findMediaElement();
43 video.src = findMediaFile("video", "content/test"); 43 video.src = findMediaFile("video", "content/test");
44 44
45 waitForEvent('canplaythrough', attemptSeek); 45 waitForEventOnce('canplaythrough', attemptSeek);
46 waitForEvent('seeked', seeked); 46 waitForEvent('seeked', seeked);
47 waitForEvent('seeking'); 47 waitForEvent('seeking');
48 waitForEvent('play'); 48 waitForEvent('play');
49 waitForEvent('pause'); 49 waitForEvent('pause');
50 } 50 }
51 </script> 51 </script>
52 </head> 52 </head>
53 <body> 53 <body>
54 <video controls></video> 54 <video controls></video>
55 <p>Test seeking by very small increments.</p> 55 <p>Test seeking by very small increments.</p>
56 <script>start()</script> 56 <script>start()</script>
57 </body> 57 </body>
58 </html> 58 </html>
OLDNEW
« no previous file with comments | « LayoutTests/media/video-played-reset.html ('k') | LayoutTests/media/video-seek-past-end-playing.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698