OLD | NEW |
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> |
OLD | NEW |