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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/video-unmute-repaint.html

Issue 2321183002: Move repaint tests (except for svg/) to paint/invalidation (Closed)
Patch Set: - Created 4 years, 3 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
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> 11 <p>This tests that we repaint the mute button when we change the volume</p>
12 12
13 <script> 13 <script>
14 window.testIsAsync = true; 14 window.testIsAsync = true;
15 15
16 var video = document.getElementById("v"); 16 var video = document.getElementById("v");
17 video.addEventListener("canplaythrough", runTest, true); 17 video.addEventListener("canplaythrough", runTest, true);
18 function repaintTest() { 18 function repaintTest() {
19 video.volume = 0.5; 19 video.volume = 0.5;
20 finishRepaintTest(); 20 finishRepaintTest();
21 } 21 }
22 22
23 function runTest() { 23 function runTest() {
24 video.volume = 0; 24 video.volume = 0;
25 runRepaintTest(); 25 runRepaintTest();
26 } 26 }
27 </script> 27 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698