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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/custom/js-repaint-rect-on-path-with-stroke.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" standalone="no"?> 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" width="300" height="300" onload="runRepaintAndPixelTest()"> 2 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" width="300" height="300" onload="runRepaintTest()">
3 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/> 3 <script xlink:href="../../fast/repaint/resources/repaint.js"/>
4 <!-- Tests the correct calculation of repaint rect. The triangle should be on th e left hand side of the line. --> 4 <!-- Tests the correct calculation of repaint rect. The triangle should be on th e left hand side of the line. -->
5 <script> 5 <script>
6 function repaintTest() { 6 function repaintTest() {
7 var path = document.getElementById("path"); 7 var path = document.getElementById("path");
8 trafos = path.transform.baseVal; 8 trafos = path.transform.baseVal;
9 trafos.appendItem(trafos.createSVGTransformFromMatrix(document.documentEleme nt.createSVGMatrix().translate(-150,0))); 9 trafos.appendItem(trafos.createSVGTransformFromMatrix(document.documentEleme nt.createSVGMatrix().translate(-150,0)));
10 } 10 }
11 </script> 11 </script>
12 <line x1="175" y1="30" x2="175" y2="120" stroke="black"/> 12 <line x1="175" y1="30" x2="175" y2="120" stroke="black"/>
13 <path id="path" d="M200,50 L300,75 L200,100" style="stroke-width:10;stroke-dasha rray:210;stroke-dashoffset:210;fill:green;stroke:black"/> 13 <path id="path" d="M200,50 L300,75 L200,100" style="stroke-width:10;stroke-dasha rray:210;stroke-dashoffset:210;fill:green;stroke:black"/>
14 14
15 </svg> 15 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698