Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: LayoutTests/fast/repaint/video-unmute-repaint.html

Issue 16132004: Have to invalidate the mute button when changing the volume (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix test failure. that was a silly mistake. Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Test for crbug.com/190880</title> 2 <title>Test for crbug.com/190880</title>
3 <script src="resources/text-based-repaint.js"></script> 3 <script src="resources/text-based-repaint.js"></script>
4 <style> 4 <style>
5 video { width: 700px; } 5 video { width: 700px; }
6 </style> 6 </style>
7 7
8 <video id="v" controls autoload src="../../media/content/test.ogv"> 8 <video id="v" controls autoload src="../../media/content/test.ogv">
9 </video> 9 </video>
10 10
11 <p>This tests that we repaint the mute button when we change the volume</p>
12
11 <script> 13 <script>
12 var video = document.getElementById("v"); 14 var video = document.getElementById("v");
13 video.addEventListener("canplaythrough", runTest, true); 15 video.addEventListener("canplaythrough", runTest, true);
14 if (window.testRunner) 16 if (window.testRunner)
15 window.testRunner.waitUntilDone(); 17 window.testRunner.waitUntilDone();
16 18
17 function repaintTest() { 19 function repaintTest() {
18 video.volume = 0; 20 video.volume = 0.5;
19 } 21 }
20 22
21 function runTest() { 23 function runTest() {
24 video.volume = 0;
22 runRepaintTest(); 25 runRepaintTest();
23 26
24 if (window.testRunner) 27 if (window.testRunner)
25 window.testRunner.notifyDone(); 28 window.testRunner.notifyDone();
26 } 29 }
27 </script> 30 </script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/repaint/video-mute-repaint-expected.txt ('k') | LayoutTests/fast/repaint/video-unmute-repaint-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698