Upstream version 5.34.98.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / repaint / video-unmute-repaint.html
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>
7
8 <video id="v" controls autoload src="../../media/content/test.ogv">
9 </video>
10
11 <p>This tests that we repaint the mute button when we change the volume</p>
12
13 <script>
14     var video = document.getElementById("v");
15     video.addEventListener("canplaythrough", runTest, true);
16     if (window.testRunner)
17         window.testRunner.waitUntilDone();
18
19     function repaintTest() {
20         video.volume = 0.5;
21     }
22
23     function runTest() {
24         video.volume = 0;
25         runRepaintTest();
26
27         if (window.testRunner)
28             window.testRunner.notifyDone();
29     }
30 </script>