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

Side by Side Diff: LayoutTests/svg/filters/feImage-target-add-to-document.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 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" onload="runRepaintTest()"> 2 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" onload="runRepaintAndPixelTest()">
3 <script xlink:href="../../fast/repaint/resources/repaint.js"></script> 3 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"></sc ript>
4 <title>There should be a single green 100x100 square.</title> 4 <title>There should be a single green 100x100 square.</title>
5 <defs> 5 <defs>
6 <rect id="red-rect" width="100" height="100" fill="red"/> 6 <rect id="red-rect" width="100" height="100" fill="red"/>
7 <rect id="green-rect" width="100" height="100" fill="green"/> 7 <rect id="green-rect" width="100" height="100" fill="green"/>
8 8
9 <filter id="filter"> 9 <filter id="filter">
10 <feImage id="feimage-red" xlink:href="#red-rect"/> 10 <feImage id="feimage-red" xlink:href="#red-rect"/>
11 </filter> 11 </filter>
12 </defs> 12 </defs>
13 <rect x="0" y="0" width="100" height="100" filter="url(#filter)" /> 13 <rect x="0" y="0" width="100" height="100" filter="url(#filter)" />
14 <script> 14 <script>
15 <![CDATA[ 15 <![CDATA[
16 function repaintTest() 16 function repaintTest()
17 { 17 {
18 var newFEImage = document.createElementNS("http://www.w3.org/2000/sv g", "feImage"); 18 var newFEImage = document.createElementNS("http://www.w3.org/2000/sv g", "feImage");
19 newFEImage.setAttributeNS("http://www.w3.org/1999/xlink", "href", "# green-rect"); 19 newFEImage.setAttributeNS("http://www.w3.org/1999/xlink", "href", "# green-rect");
20 document.getElementById("filter").appendChild(newFEImage); 20 document.getElementById("filter").appendChild(newFEImage);
21 } 21 }
22 ]]> 22 ]]>
23 </script> 23 </script>
24 </svg> 24 </svg>
OLDNEW
« no previous file with comments | « LayoutTests/svg/filters/feImage-remove-target.svg ('k') | LayoutTests/svg/filters/feImage-target-attribute-change.svg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698