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

Side by Side Diff: LayoutTests/svg/W3C-SVG-1.1/text-intro-02-b.svg

Issue 1057303003: Remove 2 duplicated SVG tests and rename 3 SVG text tests for selection (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove 2 duplicated SVG tests and rename 3 SVG text tests for reflecting 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
OLDNEW
(Empty)
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics /SVG/1.1/DTD/svg11-basic.dtd"
3 [
4 <!ENTITY % svgExt "| SVGTestCase">
5 <!ELEMENT SVGTestCase (OperatorScript)>
6 <!ATTLIST SVGTestCase
7 xmlns CDATA #REQUIRED
8 >
9 <!ELEMENT OperatorScript (Paragraph)*>
10 <!ATTLIST OperatorScript
11 version CDATA #IMPLIED
12 testname CDATA #IMPLIED
13 >
14 <!ELEMENT Paragraph (#PCDATA)>
15 ]>
16 <!--======================================================================-->
17 <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
18 <!--= Institute of Technology, Institut National de Recherche en =-->
19 <!--= Informatique et en Automatique, Keio University). All Rights =-->
20 <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
21 <!--======================================================================-->
22 <!-- ===================================================================== -->
23 <!-- -->
24 <!-- text-i18n-BE-09.svg -->
25 <!-- renamed for 1.1 suite to text-intro-02-b.svg -->
26 <!-- -->
27 <!-- Test various aspects of internationalized text, including -->
28 <!-- left-to-right, right-to-left, and the -->
29 <!-- following properties: 'writing-mode', -->
30 <!-- 'direction' and 'unicode-bidi'. -->
31 <!-- -->
32 <!-- Author : Jon Ferraiolo 06-Aug-2000 -->
33 <!-- 1.1 revision by Vincent Hardy -->
34 <!-- -->
35 <!-- History: -->
36 <!-- 06-Aug-2000, JF: Serial#1 created. -->
37 <!-- 19-Aug-2000, LH: fix missing </g>. -->
38 <!-- -->
39 <!-- ===================================================================== -->
40 <!--======================================================================-->
41 <!--= Note. After October 2000, revision history is kept as CVS 'commit' =-->
42 <!--= log messages, and therefore is no longer in the preceding preamble.=-->
43 <!--======================================================================-->
44 <svg version="1.1" baseProfile="basic" xmlns="http://www.w3.org/2000/svg" xmlns: xlink="http://www.w3.org/1999/xlink" id="svg-root" width="100%" height="100%" vi ewBox="0 0 480 360">
45 <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/ ">
46 <!--nav data here-->
47 <OperatorScript version="$Revision: 1.9 $" testname="text-intro- 02-b.svg">
48 <Paragraph>
49 Test various aspects of internationalized text, including
50 left-to-right, right-to-left, and the
51 following properties: 'writing-mode',
52 'direction' and 'unicode-bidi'.
53 </Paragraph>
54 <Paragraph>
55 Various text strings in various languages appear. The main
56 purpose of the test is to verify that the correct characters
57 appear and that they appear in the correct order and orientation .
58 Ensure that the three lines with Hebrew are ordered
59 correctly (test of bidi algorithms and support of 'unicode-bidi' and
60 'direction' properties). </Paragraph>
61 <Paragraph>
62 This test requires installation of a system font that supports
63 the various international characters used in this test case. A
64 suitable font should be used by the SVG renderer if none of the
65 specified font families are available (or if they are available but do
66 not have the required glyphs). To
67 minimize system dependencies, a future version of this test
68 might include all necessary glyphs as an SVG font.
69 </Paragraph>
70 </OperatorScript>
71 </SVGTestCase>
72 <title id="test-title">text-intro-02-b</title>
73 <desc id="test-desc">Test various aspects of internationalized text, inc luding left-to-right and right-to-left text, and the following properties: 'dir ection' and 'unicode-bidi'.</desc>
74 <!--==================================================================== ==-->
75 <!--Content of Test Case follows... =================== ==-->
76 <!--==================================================================== ==-->
77 <defs>
78 <!-- Important SVGExotic font instead of relying on MS Office Fo nts to be present -->
79 <font-face font-family="SVGExotic">
80 <font-face-src>
81 <font-face-uri xlink:href="resources/SVGExotic.s vg#exotic"/>
82 </font-face-src>
83 </font-face>
84 </defs>
85 <g id="test-body-content">
86 <text font-family="Arial" font-size="17" fill="red" x="10" y="40 ">unicode-bidi="bidi-override" direction="ltr".</text>
87 <g font-size="18" font-family="SVGExotic">
88 <text x="10" y="80" unicode-bidi="bidi-override" directi on="ltr">Text "אני יכול לאכול זכוכית וזה לא מזיק לי" is in Hebrew</text>
89 </g>
90 <!-- NOTE: THIS SUBTEST IS BROKEN ON PURPOSE. SVG 1.1 2nd Edition change d the meaning of direction="rtl" and text-anchor properties.
91 text-anchor should be defined relative to writing direction, so wit h text-anchor="end" this test would work again.
92 Compare with LayoutTests/svg/W3C-SVG-1.1-SE/text-intro-02-b.svg, wh ich contains this fix. -->
93 <text font-family="Arial" font-size="17" fill="red" x="10" y="14 0">unicode-bidi="bidi-override" direction="rtl".</text>
94 <g font-size="18" font-family="SVGExoti c">
95 <text x="10" y="180" unicode-bidi="bidi-override" direct ion="rtl">Text "אני יכול לאכול זכוכית וזה לא מזיק לי" is in Hebrew</text>
96 </g>
97 <!-- NOTE: THIS SUBTEST IS BROKEN ON PURPOSE. SVG 1.1 2nd Edition change d the meaning of direction="rtl" and text-anchor properties.
98 text-anchor should be defined relative to writing direction, so wit h text-anchor="end" this test would work again.
99 Compare with LayoutTests/svg/W3C-SVG-1.1-SE/text-intro-02-b.svg, wh ich contains this fix. -->
100 <text font-family="Arial" font-size="17" fill="r ed" x="10" y="240">unicode-bidi="normal" direction="ltr".</text>
101 <g font-size="18" font-family="SVGExoti c">
102 <text x="10" y="280" unicode-bidi="normal" direction="r tl">Text "אני יכול לאכול זכוכית וזה לא מזיק לי" is in Hebrew</text>
103 </g>
104 </g>
105 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="bl ack">$Revision: 1.9 $</text>
106 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" s troke="#000000"/>
107 </svg>
OLDNEW
« no previous file with comments | « LayoutTests/platform/win/svg/text/text-spacing-01-b-expected.png ('k') | LayoutTests/svg/W3C-SVG-1.1/text-intro-05-t.svg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698