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

Side by Side Diff: LayoutTests/svg/custom/text-xy-updates-SVGList.xhtml

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 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x html1/DTD/xhtml1-strict.dtd"> 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x html1/DTD/xhtml1-strict.dtd">
2 <html 2 <html
3 xmlns="http://www.w3.org/1999/xhtml" 3 xmlns="http://www.w3.org/1999/xhtml"
4 xmlns:svg="http://www.w3.org/2000/svg"> 4 xmlns:svg="http://www.w3.org/2000/svg">
5 <head> 5 <head>
6 <script src="../../fast/repaint/resources/repaint.js"></script> 6 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
7 <script type="text/javascript"> 7 <script type="text/javascript">
8 function createSVGLength(e, value) { 8 function createSVGLength(e, value) {
9 var result = e.ownerSVGElement.createSVGLength(); 9 var result = e.ownerSVGElement.createSVGLength();
10 result.value = value; 10 result.value = value;
11 return result; 11 return result;
12 }; 12 };
13 13
14 function repaintTest() { 14 function repaintTest() {
15 var e = document.getElementById("ttt"); 15 var e = document.getElementById("ttt");
16 e.x.baseVal.initialize(createSVGLength(e, 200)); 16 e.x.baseVal.initialize(createSVGLength(e, 200));
17 e.y.baseVal.initialize(createSVGLength(e, 20)); 17 e.y.baseVal.initialize(createSVGLength(e, 20));
18 } 18 }
19 </script> 19 </script>
20 </head> 20 </head>
21 <body onload="runRepaintTest()"> 21 <body onload="runRepaintAndPixelTest()">
22 <svg:svg 22 <svg:svg
23 xmlns="http://www.w3.org/2000/svg" 23 xmlns="http://www.w3.org/2000/svg"
24 version="1.1" baseProfile="full" width="800" height="600"> 24 version="1.1" baseProfile="full" width="800" height="600">
25 <text id="ttt" x="10" y="200">Passes, if text is at 200x20</text> 25 <text id="ttt" x="10" y="200">Passes, if text is at 200x20</text>
26 </svg:svg> 26 </svg:svg>
27 </body> 27 </body>
28 </html> 28 </html>
OLDNEW
« no previous file with comments | « LayoutTests/svg/custom/text-repaint-including-stroke.svg ('k') | LayoutTests/svg/custom/use-clipped-hit.svg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698