3 <title>Test rendering of volume slider of video tag</title>
4 <script src=media-file.js></script>
5 <script src=media-controls.js></script>
11 if (window.testRunner)
12 testRunner.waitUntilDone();
14 video = document.getElementsByTagName("video")[0];
15 video.src = findMediaFile("video", "content/test");
22 if (window.eventSender) {
25 muteCoords = mediaControlsButtonCoordinates(video, "mute-button");
27 testRunner.notifyDone();
30 eventSender.mouseMoveTo(muteCoords[0], muteCoords[1]);
33 video.addEventListener("volumechange", function() {
34 if (window.testRunner)
35 testRunner.notifyDone();
40 <body onload="init()">
41 Tests if the volume slider is rendererd properly. This test assumes the<br>
42 volume slider is implmented and mouse over the right bottom corner of<br>
43 video element will show the volume slider.<br>
44 <video oncanplaythrough="test()" controls></video>