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

Side by Side Diff: LayoutTests/svg/custom/js-repaint-rect-on-path-with-stroke.svg

Issue 205263004: Convert svg repaint tests to pixel test only repaint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove fixedpos Created 6 years, 8 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 <?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="runRepaintTest()"> 2 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" width="300" height="300" onload="runRepaintAndPixelTest()">
3 <script xlink:href="../../fast/repaint/resources/repaint.js"/> 3 <script xlink:href="../../fast/repaint/resources/text-based-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
« no previous file with comments | « LayoutTests/svg/custom/js-late-pattern-creation.svg ('k') | LayoutTests/svg/custom/js-update-bounce.svg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698