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

Side by Side Diff: LayoutTests/svg/custom/repaint-on-image-bounds-change.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, 9 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"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SV G-20010904/DTD/svg10.dtd"> 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SV G-20010904/DTD/svg10.dtd">
3 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" onload="runRepaintTest()" > 3 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" onload="runRepaintAndPixelTest()" >
4 <script xlink:href="../../fast/repaint/resources/repaint.js"/> 4 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/>
5 <script type="text/ecmascript"> 5 <script type="text/ecmascript">
6 <![CDATA[ 6 <![CDATA[
7 // This is used to test that we correctly invalidate the original image bounds w hen the 7 // This is used to test that we correctly invalidate the original image bounds w hen the
8 // image attributes are changed. A correct result will be a 100x100px green squ are 8 // image attributes are changed. A correct result will be a 100x100px green squ are
9 function repaintTest() { 9 function repaintTest() {
10 var target = document.getElementById("target"); 10 var target = document.getElementById("target");
11 target.setAttributeNS(null,"width", 0); 11 target.setAttributeNS(null,"width", 0);
12 target.setAttributeNS(null,"height", 0); 12 target.setAttributeNS(null,"height", 0);
13 target.setAttributeNS(null,"x", 50); 13 target.setAttributeNS(null,"x", 50);
14 target.setAttributeNS(null,"y", 50); 14 target.setAttributeNS(null,"y", 50);
15 } 15 }
16 ]]> 16 ]]>
17 </script> 17 </script>
18 <rect x="0" y="0" width="100" height="100" fill="green" stroke="none"/> 18 <rect x="0" y="0" width="100" height="100" fill="green" stroke="none"/>
19 <image xlink:href="../../css2.1/support/swatch-red.png" id="target" x="0" y="0" width="100" height="100" /> 19 <image xlink:href="../../css2.1/support/swatch-red.png" id="target" x="0" y="0" width="100" height="100" />
20 </svg> 20 </svg>
OLDNEW
« no previous file with comments | « LayoutTests/svg/custom/repaint-on-constant-size-change.svg ('k') | LayoutTests/svg/custom/repaint-shadow.svg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698