blob: fdf9035a129dfb6599365659b64e11a0c9925462 [file] [log] [blame]
<video controls></video>
<p>Test that muted video has an unmute button.<p>
<script src=media-file.js></script>
<!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956
(Please avoid writing new tests using video-test.js) -->
<script src=video-test.js></script>
<script src=media-controls.js></script>
<script>
run("video.muted = true");
video.src = findMediaFile("video", "content/test");
run("video.load()");
waitForEvent("canplaythrough", function () {
testExpected("video.muted", true);
muteButton = mediaControlsButton(video, "mute-button");
// Make sure that the mute button is visible.
testExpected("getComputedStyle(muteButton).display", "none", '!=');
endTest();
});
</script>