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

Side by Side Diff: LayoutTests/svg/text/text-fonts-01-t.svg

Issue 1098653002: Rename 5 SVG text tests to reflect that they are for selection. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rename 5 SVG text tests to reflect that they are for selection. Created 5 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
« no previous file with comments | « LayoutTests/svg/text/text-deco-01-b.svg ('k') | LayoutTests/svg/text/text-fonts-02-t.svg » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/ SVG/1.1/DTD/svg11-tiny.dtd">
3
4 <!--======================================================================-->
5 <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
6 <!--= Institute of Technology, Institut National de Recherche en =-->
7 <!--= Informatique et en Automatique, Keio University). All Rights =-->
8 <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
9 <!--======================================================================-->
10 <!-- =====================================================================-->
11 <!-- -->
12 <!-- text-font-BE-15.svg -->
13 <!-- renamed for 1.1 suite to text-fonts-01-t.svg -->
14 <!-- -->
15 <!-- Test that viewer has the basic capability to handle font -->
16 <!-- families, both generic and named fonts WORKS CSIRO -->
17 <!-- -->
18 <!-- Author : Chris Lilley, 01-Mar-2000 -->
19 <!-- 1.1 revision by Rick Graham -->
20 <!-- Revised for Mobile Profiles: Jun Fujisawa 16-Jul-2002 -->
21 <!-- -->
22 <!-- History: -->
23 <!-- 01-Mar-2000, CL, Serial#1 created. Matches 20000110 SVG spec. -->
24 <!-- 09-Mar-2000, CL, altered 449 to 448 for outline box -->
25 <!-- 22-Mar-2000, CL, adjusted japanese text so it says japanese -->
26 <!-- word for "graphic image" (gazou), ser#2 -->
27 <!-- 17-Aug-2000, CL, updated to 20000802 dtd, ser#3 -->
28 <!-- 21-Aug-2000, LH, renamed for integration. -->
29 <!-- 14-Nov-2000, LH: move defs into test-body-content. -->
30 <!-- 26-Nov-2000, LH: put class "foo" back onto text elts group. -->
31 <!-- 07-Dec-2000, JF: Remove 'd' from 'monospaced' -->
32 <!-- =====================================================================-->
33 <!--======================================================================-->
34 <!--= Note. After October 2000, revision history is kept as CVS 'commit' =-->
35 <!--= log messages, and therefore is no longer in the preceding preamble.=-->
36 <!--======================================================================-->
37 <svg version="1.1" baseProfile="tiny" xmlns="http://www.w3.org/2000/svg" xmlns:x link="http://www.w3.org/1999/xlink" id="svg-root" width="100%" height="100%" vie wBox="0 0 480 360">
38 <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/">
39 <OperatorScript version="$Revision: 1.5 $" testname="text-fonts- 01-t.svg">
40 <Paragraph>
41 Purpose of test is to determine if the font fami ly is being
42 correctly selected. The top two lines of text te st serif fonts;
43 the top line in maroon tests the generic font fa mily 'serif'
44 and the second line in black tests a selection o f commonly
45 available named serif fonts. The next two lines of text test
46 sans-serif fonts;
47 the top line in maroon tests the generic font fa mily 'sans-serif'
48 and the second line in black tests a selection o f commonly
49 available named sans serif fonts. The following two lines
50 of text test monospaced fonts;
51 the top line in maroon tests the generic font fa mily 'monospaced'
52 and the second line in black tests a selection o f commonly
53 available named monospaced fonts. The lowercase 'i' and uppercase'W'
54 should be the same width,for monospaced fonts.
55 </Paragraph>
56 <Paragraph>
57 The seventh line of text, in green, tests for
58 three non-existent fonts (nonsense names). There is no fallback
59 generic font specified. The text must be display ed anyway.
60 </Paragraph>
61 <Paragraph>
62 The first six lines contain two Japanese charact ers (&#x753B;&#x50CF;)
63 at the end of the line. Both of these characters must be displayed,
64 although it is compliant to display them with th e 'missing glyph'
65 if no suitable font containing Japanese characte rs can be found.
66 Most but not all fonts have a visible missing gl yph character.
67 If the selected font has a visible missing glyph character, it should appear
68 wherever the corresponding glyph is not availabl e.
69 <!-- can also be used for copy and paste tests; correct characters
70 to be pasted even if displayed with missing glyph -->
71 </Paragraph>
72 </OperatorScript>
73 </SVGTestCase>
74 <title id="test-title">text-fonts-01-t.svg</title>
75 <desc id="test-desc">
76 Test that viewer has the basic capability to handle different font families </de sc>
77 <!--==================================================================== ==-->
78 <!--Content of Test Case follows... =================== ==-->
79 <!--==================================================================== ==-->
80 <g id="test-body-content">
81 <g font-weight="normal" font-size="24" stroke="none">
82 <text font-family="Georgia, 'Minion Web', 'Times New Rom an', Times, 'MS PMincho', Heisei-Mincho, serif " x="20" y="80">A serifed face 画像 </text>
83 <text font-family="Arial, 'Arial Unicode', 'Myriad Web', Geneva, 'Lucida Sans Unicode', 'MS PGothic', Osaka, sans-serif " x="20" y="160" >A sans-serif face 画像</text>
84 <text font-family="'Lucida Console', 'Courier New', Cour ier, Monaco, 'MS Gothic', Osaka-Mono, monospace" x="20" y="240">A mono (iW) face 画像</text>
85 <g id="generic" fill="maroon">
86 <text font-family="serif" x="40" y="50">A serife d face 画像</text>
87 <text font-family="sans-serif " x="40" y="130">A sans-serif face 画像</text>
88 <text font-family="monospace " x="40" y="210">A mono (iW) face 画像</text>
89 </g>
90 <text fill="green" font-family="'No such font at all', ' another fictitious one', sillynamewithoutspaces" x="40" y="290">This must be dis played</text>
91 </g>
92 </g>
93
94
95 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="bl ack">$Revision: 1.5 $</text>
96 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" s troke="#000000"/>
97 <script>
98 if (window.testRunner)
99 window.testRunner.dumpSelectionRect();
100 document.execCommand("SelectAll");
101 </script>
102 </svg>
103
OLDNEW
« no previous file with comments | « LayoutTests/svg/text/text-deco-01-b.svg ('k') | LayoutTests/svg/text/text-fonts-02-t.svg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698