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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/text/text-selection-text-05-t.svg

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 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- =====================================================================--> 2 <!-- =====================================================================-->
3 <!-- --> 3 <!-- -->
4 <!-- text-text-05-t.svg --> 4 <!-- text-text-05-t.svg -->
5 <!-- --> 5 <!-- -->
6 <!-- Tests that the viewer can handle the rotate attribute on the text --> 6 <!-- Tests that the viewer can handle the rotate attribute on the text -->
7 <!-- element. --> 7 <!-- element. -->
8 <!-- --> 8 <!-- -->
9 <!-- Author : Vincent Hardy, 06-Jan-2004 --><!D OCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG /1.1/DTD/svg11-tiny.dtd"> 9 <!-- Author : Vincent Hardy, 06-Jan-2004 --><!D OCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG /1.1/DTD/svg11-tiny.dtd">
10 10
11 <svg onload="runRepaintAndPixelTest()" xmlns="http://www.w3.org/2000/svg" xmlns: xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="tiny" id="svg-ro ot" width="100%" height="100%" viewBox="0 0 480 360"> 11 <svg onload="runRepaintTest()" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="h ttp://www.w3.org/1999/xlink" version="1.1" baseProfile="tiny" id="svg-root" widt h="100%" height="100%" viewBox="0 0 480 360">
12 <SVGTestCase xmlns:testcase="http://www.w3.org/2000/02/svg/testsuite/descrip tion/" xmlns="http://www.w3.org/2000/02/svg/testsuite/description/" owner="VH" d esc="Tests that the viewer can handle the rotate attribute on the text e lement" status="accepted" version="$Revision: 1.8 $" testname="$RCSfile: text-te xt-05-t.svg,v $"> 12 <SVGTestCase xmlns:testcase="http://www.w3.org/2000/02/svg/testsuite/descrip tion/" xmlns="http://www.w3.org/2000/02/svg/testsuite/description/" owner="VH" d esc="Tests that the viewer can handle the rotate attribute on the text e lement" status="accepted" version="$Revision: 1.8 $" testname="$RCSfile: text-te xt-05-t.svg,v $">
13 <OperatorScript> 13 <OperatorScript>
14 <Paragraph> 14 <Paragraph>
15 The purpose of this test is to validate the interaction of text- anchor 15 The purpose of this test is to validate the interaction of text- anchor
16 and x/y glyph positioning. 16 and x/y glyph positioning.
17 </Paragraph> 17 </Paragraph>
18 <Paragraph> 18 <Paragraph>
19 Each row shows a different combination of x/y values: 1, more th an characters, 19 Each row shows a different combination of x/y values: 1, more th an characters,
20 fewer than characters. Each column shows different anchor values : start, middle 20 fewer than characters. Each column shows different anchor values : start, middle
21 and end. 21 and end.
22 </Paragraph> 22 </Paragraph>
23 <Paragraph> 23 <Paragraph>
24 The blue markers show the various x/y absolute positions around which text 24 The blue markers show the various x/y absolute positions around which text
25 chunks should be anchored. The glyphs are black squares of incre asing sizes. 25 chunks should be anchored. The glyphs are black squares of incre asing sizes.
26 </Paragraph> 26 </Paragraph>
27 </OperatorScript> 27 </OperatorScript>
28 </SVGTestCase> 28 </SVGTestCase>
29 <title id="test-title">text-fontSize-01-t.svg</title> 29 <title id="test-title">text-fontSize-01-t.svg</title>
30 <desc id="test-desc"/> 30 <desc id="test-desc"/>
31 31
32 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"></sc ript> 32 <script xlink:href="../../fast/repaint/resources/repaint.js"></script>
33 <!--======================================================================-- > 33 <!--======================================================================-- >
34 <!--Content of Test Case follows... =====================-- > 34 <!--Content of Test Case follows... =====================-- >
35 <!--======================================================================-- > 35 <!--======================================================================-- >
36 <g id="test-body-content" font-size="16"> 36 <g id="test-body-content" font-size="16">
37 <defs> 37 <defs>
38 <font id="embeded" horiz-adv-x="224"> 38 <font id="embeded" horiz-adv-x="224">
39 <font-face font-family="embeded" units-per-em="1000" panose-1="0 0 0 0 0 0 0 0 0 0" ascent="917" descent="-250" alphabetic="0"/> 39 <font-face font-family="embeded" units-per-em="1000" panose-1="0 0 0 0 0 0 0 0 0 0" ascent="917" descent="-250" alphabetic="0"/>
40 <missing-glyph horiz-adv-x="800" d="M50 0V800H750V0H50ZM700 50V7 50H100V50H700Z"/> 40 <missing-glyph horiz-adv-x="800" d="M50 0V800H750V0H50ZM700 50V7 50H100V50H700Z"/>
41 <glyph unicode="1" glyph-name="gl_1" horiz-adv-x="1500" d="M 0 0 L 250 0 L 250 250 L 0 250 Z"/> 41 <glyph unicode="1" glyph-name="gl_1" horiz-adv-x="1500" d="M 0 0 L 250 0 L 250 250 L 0 250 Z"/>
42 <glyph unicode="2" glyph-name="gl_2" horiz-adv-x="1500" d="M 0 0 L 500 0 L 500 500 L 0 500 Z"/> 42 <glyph unicode="2" glyph-name="gl_2" horiz-adv-x="1500" d="M 0 0 L 500 0 L 500 500 L 0 500 Z"/>
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 function repaintTest() { 166 function repaintTest() {
167 var range = document.createRange(); 167 var range = document.createRange();
168 range.selectNode(window.document.documentElement); 168 range.selectNode(window.document.documentElement);
169 var selection = window.getSelection(); 169 var selection = window.getSelection();
170 selection.removeAllRanges(); 170 selection.removeAllRanges();
171 selection.addRange(range); 171 selection.addRange(range);
172 } 172 }
173 </script> 173 </script>
174 </svg> 174 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698