Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / repaint / video-unmute-repaint.html
blob8370a0ed36e27d00150d714cbc3d5734839fdf1e
1 <!DOCTYPE html>
2 <title>Test for crbug.com/190880</title>
3 <script src="resources/text-based-repaint.js"></script>
4 <style>
5 video { width: 700px; }
6 </style>
8 <video id="v" controls autoload src="../../media/content/test.ogv">
9 </video>
11 <p>This tests that we repaint the mute button when we change the volume</p>
13 <script>
14 window.testIsAsync = true;
16 var video = document.getElementById("v");
17 video.addEventListener("canplaythrough", runTest, true);
18 function repaintTest() {
19 video.volume = 0.5;
20 finishRepaintTest();
23 function runTest() {
24 video.volume = 0;
25 runRepaintTest();
27 </script>