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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/repaint/svgsvgelement-repaint-children.html

Issue 1972273002: Let repaint tests test pixels by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 4 <script src="../../fast/repaint/resources/repaint.js"></script>
5 </head> 5 </head>
6 <!-- Test for WK108429: All red should disappear, leaving just a green square. - -> 6 <!-- Test for WK108429: All red should disappear, leaving just a green square. - ->
7 <body onload="runRepaintAndPixelTest()"> 7 <body onload="runRepaintTest()">
8 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" width="400" height="400"> 8 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" width="400" height="400">
9 <svg> 9 <svg>
10 <rect x="0" y="0" width="100" height="100" fill="green"/> 10 <rect x="0" y="0" width="100" height="100" fill="green"/>
11 <path id="path" d="M0 0 L 100 0 L 100 100 L 0 100Z" fill="red"/> 11 <path id="path" d="M0 0 L 100 0 L 100 100 L 0 100Z" fill="red"/>
12 </svg> 12 </svg>
13 <script> 13 <script>
14 window.testIsAsync = true; 14 window.testIsAsync = true;
15 function repaintTest() { 15 function repaintTest() {
16 setTimeout(function() { 16 setTimeout(function() {
17 var pathEl = document.getElementById('path'); 17 var pathEl = document.getElementById('path');
18 pathEl.setAttribute('d', 'M0 0Z'); 18 pathEl.setAttribute('d', 'M0 0Z');
19 finishRepaintTest(); 19 finishRepaintTest();
20 }, 1); 20 }, 1);
21 } 21 }
22 </script> 22 </script>
23 </svg> 23 </svg>
24 </body> 24 </body>
25 </html> 25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698