Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / media / video-controls-muted-video-can-unmute.html
blob93b1a251eb254f6a964e8ba16ed6b310b6fcd407
1 <video controls></video>
2 <p>Test that muted video has an unmute button.<p>
3 <script src=media-file.js></script>
4 <script src=video-test.js></script>
5 <script src=media-controls.js></script>
6 <script>
7 run("video.muted = true");
8 video.src = findMediaFile("video", "content/test");
9 run("video.load()");
10 waitForEvent("canplaythrough", function () {
11 testExpected("video.muted", true);
12 muteButton = mediaControlsButton(video, "mute-button");
13 // Make sure that the mute button is visible.
14 testExpected("getComputedStyle(muteButton).display", "none", '!=');
15 endTest();
16 });
17 </script>