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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/custom/js-late-pattern-creation.svg

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 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics /SVG/1.1/DTD/svg11-basic.dtd"> 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics /SVG/1.1/DTD/svg11-basic.dtd">
3 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360" onload="runRe paintAndPixelTest()"> 3 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360" onload="runRe paintTest()">
4 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/> 4 <script xlink:href="../../fast/repaint/resources/repaint.js"/>
5 <g id="content" transform="scale(1, 1.5)"> 5 <g id="content" transform="scale(1, 1.5)">
6 <text font-size="68" fill="url(#dynPattern)" x="20" y="70">Pattern on fill </text> 6 <text font-size="68" fill="url(#dynPattern)" x="20" y="70">Pattern on fill </text>
7 </g> 7 </g>
8 <script> 8 <script>
9 window.testIsAsync = true; 9 window.testIsAsync = true;
10 var content = document.getElementById("content"); 10 var content = document.getElementById("content");
11 11
12 function repaintTest() { 12 function repaintTest() {
13 // FIXME: we need a better way of waiting for layout/repainting to happe n 13 // FIXME: we need a better way of waiting for layout/repainting to happe n
14 setTimeout(createPattern, 1); 14 setTimeout(createPattern, 1);
(...skipping 26 matching lines...) Expand all
41 pattern.appendChild(rect1); 41 pattern.appendChild(rect1);
42 pattern.appendChild(rect2); 42 pattern.appendChild(rect2);
43 43
44 content.appendChild(pattern); 44 content.appendChild(pattern);
45 45
46 finishRepaintTest(); 46 finishRepaintTest();
47 } 47 }
48 </script> 48 </script>
49 49
50 </svg> 50 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698