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

Side by Side Diff: LayoutTests/media/controls-restrained-media-controller.html

Issue 456343002: Relanding 'Always notify the MediaPlayer of any seek' patch (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed test failure Created 6 years 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
« no previous file with comments | « no previous file | LayoutTests/media/controls-timeline-with-controller.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>controls of a non-blocked and a blocked media element slaved to a media c ontroller</title> 2 <title>controls of a non-blocked and a blocked media element slaved to a media c ontroller</title>
3 <script src="media-file.js"></script> 3 <script src="media-file.js"></script>
4 <video mediagroup="x" controls></video> 4 <video mediagroup="x" controls></video>
5 <!-- This video will stay in readyState HAVE_NOTHING, which before 5 <!-- This video will stay in readyState HAVE_NOTHING, which before
6 https://www.w3.org/Bugs/Public/show_bug.cgi?id=25429 would cause the media 6 https://www.w3.org/Bugs/Public/show_bug.cgi?id=25429 would cause the media
7 controller to *not* be a restrained media controller, which would make the 7 controller to *not* be a restrained media controller, which would make the
8 activation behavior (toggle play/pause) do the wrong thing. --> 8 activation behavior (toggle play/pause) do the wrong thing. -->
9 <video mediagroup="x" hidden></video> 9 <video mediagroup="x" hidden></video>
10 <script> 10 <script>
11 var video = document.querySelector('video[controls]'); 11 var video = document.querySelector('video[controls]');
12 video.src = findMediaFile('video', 'content/test'); 12 video.src = findMediaFile('video', 'content/test');
13 13
14 if (window.testRunner) { 14 if (window.testRunner) {
15 testRunner.waitUntilDone(); 15 testRunner.waitUntilDone();
16 video.addEventListener('canplay', function() { 16 window.setTimeout(function() {
philipj_slow 2014/12/15 14:52:38 Having a timeout is a recipe for future flakiness.
17 testRunner.notifyDone(); 17 testRunner.notifyDone();
18 }); 18 }, 100);
19 } 19 }
20 </script> 20 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/media/controls-timeline-with-controller.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698