Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / media / controls-restrained-media-controller.html
blob739dcd205720052b5b1b7f174fa2e953dd1bcc6b
1 <!DOCTYPE html>
2 <title>controls of a non-blocked and a blocked media element slaved to a media controller</title>
3 <script src="media-file.js"></script>
4 <video mediagroup="x" controls></video>
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
7 controller to *not* be a restrained media controller, which would make the
8 activation behavior (toggle play/pause) do the wrong thing. -->
9 <video mediagroup="x" hidden></video>
10 <script>
11 var video = document.querySelector('video[controls]');
12 video.src = findMediaFile('video', 'content/test');
14 if (window.testRunner) {
15 testRunner.waitUntilDone();
16 video.addEventListener('canplay', function() {
17 testRunner.notifyDone();
18 });
20 </script>