4 <title>media controls mute button with MediaController
</title>
5 <script src=
"media-file.js"></script>
6 <script src=
"media-controls.js"></script>
9 <video controls
mediagroup=
"x"></video>
11 if (window
.testRunner
)
12 testRunner
.waitUntilDone();
14 var video
= document
.querySelector("video");
15 video
.src
= findMediaFile("video", "content/test");
16 video
.addEventListener("loadeddata", function()
18 if (window
.eventSender
) {
19 // click the mute button
20 var coords
= mediaControlsButtonCoordinates(video
, "mute-button");
21 eventSender
.mouseMoveTo(coords
[0], coords
[1]);
22 eventSender
.mouseDown();
23 eventSender
.mouseUp();
25 // wait for the volumechange event
26 video
.addEventListener("volumechange", function()
28 if (window
.testRunner
)
29 testRunner
.notifyDone();