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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/text/text-rescale.html

Issue 1972273002: Let repaint tests test pixels by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
OLDNEW
1 <html xmlns="http://www.w3.org/1999/xhtml"> 1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <head> 2 <head>
3 <!-- Test that a script can change the scale of text from very small to somethin g visible --> 3 <!-- Test that a script can change the scale of text from very small to somethin g visible -->
4 <!-- see: https://bugs.webkit.org/show_bug.cgi?id=75091 --> 4 <!-- see: https://bugs.webkit.org/show_bug.cgi?id=75091 -->
5 <!-- If this test passes there should be 3 rows and 4 columns of "PASS" --> 5 <!-- If this test passes there should be 3 rows and 4 columns of "PASS" -->
6 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 6 <script src="../../fast/repaint/resources/repaint.js"></script>
7 </head> 7 </head>
8 <body onload="runRepaintAndPixelTest()"> 8 <body onload="runRepaintTest()">
9 <svg style="position: absolute; top: 0px; left: 0px; width: 500px; height: 200px "> 9 <svg style="position: absolute; top: 0px; left: 0px; width: 500px; height: 200px ">
10 <g id="text1g" transform="scale(0.001)"> 10 <g id="text1g" transform="scale(0.001)">
11 <text x="0" y="50" font-size="40" fill="#080"> 11 <text x="0" y="50" font-size="40" fill="#080">
12 PASS 12 PASS
13 <tspan fill="#080"> PASS</tspan> 13 <tspan fill="#080"> PASS</tspan>
14 </text> 14 </text>
15 <foreignObject x="210" y="13" width="100" height="100"> 15 <foreignObject x="210" y="13" width="100" height="100">
16 <body><p style="font-size: 40px; color: #080;">PASS</p></body> 16 <body><p style="font-size: 40px; color: #080;">PASS</p></body>
17 </foreignObject> 17 </foreignObject>
18 <svg x="310" y="13" width="100" height="100"> 18 <svg x="310" y="13" width="100" height="100">
(...skipping 27 matching lines...) Expand all
46 </svg> 46 </svg>
47 <script> 47 <script>
48 function repaintTest() { 48 function repaintTest() {
49 document.getElementById("text1g").setAttribute('transform', 'scale(1)'); 49 document.getElementById("text1g").setAttribute('transform', 'scale(1)');
50 document.getElementById("text2g").setAttribute('transform', 'scale(1)'); 50 document.getElementById("text2g").setAttribute('transform', 'scale(1)');
51 document.getElementById("text3g").setAttribute('transform', 'scale(1)'); 51 document.getElementById("text3g").setAttribute('transform', 'scale(1)');
52 } 52 }
53 </script> 53 </script>
54 </body> 54 </body>
55 </html> 55 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698