Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <svg version="1.1" baseProfile="basic" id="svg-root" | |
|
Erik Dahlström (inactive)
2014/10/24 08:05:25
why was this test removed? it isn't meant to test
| |
| 2 width="100%" height="100%" viewBox="0 0 480 360" | |
| 3 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | |
| 4 <!--======================================================================--> | |
| 5 <!--= SVG 1.1 2nd Edition Test Case =--> | |
| 6 <!--======================================================================--> | |
| 7 <!--= Copyright 2009 World Wide Web Consortium, (Massachusetts =--> | |
| 8 <!--= Institute of Technology, European Research Consortium for =--> | |
| 9 <!--= Informatics and Mathematics (ERCIM), Keio University). =--> | |
| 10 <!--= All Rights Reserved. =--> | |
| 11 <!--= See http://www.w3.org/Consortium/Legal/. =--> | |
| 12 <!--======================================================================--> | |
| 13 <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" | |
| 14 template-version="1.4" reviewer="SVGWG" author="Jon Ferraiolo" status="accep ted" | |
| 15 version="$Revision: 1.6 $" testname="$RCSfile: text-intro-09-b.svg,v $"> | |
| 16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3. org/TR/SVG11/text.html#Introduction"> | |
| 17 <p> | |
| 18 Test various aspects of internationalized text, including | |
| 19 left-to-right, right-to-left, and the | |
| 20 following properties: 'writing-mode', | |
| 21 'direction' and 'unicode-bidi'. | |
| 22 </p> | |
| 23 <p> | |
| 24 Various text strings in various languages appear. Test of bidi algorithm s and support of 'unicode-bidi' and | |
| 25 'direction' properties. Uses Webfonts. | |
| 26 </p> | |
| 27 <p> | |
| 28 This test uses Webfonts; both SVG and WOFF fonts are provided. | |
| 29 </p> | |
| 30 </d:testDescription> | |
| 31 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> | |
| 32 <p> | |
| 33 Run the test. No interaction required. Make sure scripting is enabled. | |
| 34 </p> | |
| 35 </d:operatorScript> | |
| 36 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> | |
| 37 <p> | |
| 38 The test is passed if the correct characters | |
| 39 appear and they appear in the correct order and orientation. | |
| 40 Ensure that the three lines with Hebrew are ordered | |
| 41 correctly, as shown in the reference image. | |
| 42 </p> | |
| 43 </d:passCriteria> | |
| 44 </d:SVGTestCase> | |
| 45 <title id="test-title">$RCSfile: text-intro-09-b.svg,v $</title> | |
| 46 <defs> | |
| 47 <style type="text/css"> | |
| 48 @font-face { | |
| 49 font-family: Ezra SIL SR; | |
| 50 src: url(woffs/EzraSILSR.woff) format("woff"); | |
| 51 } | |
| 52 </style> | |
| 53 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> | |
| 54 <font-face-src> | |
| 55 <font-face-uri xlink:href="../custom/resources/SVGFreeSans.svg#ascii"/> | |
| 56 </font-face-src> | |
| 57 </font-face> | |
| 58 <font-face font-family="SVGHebrew" unicode-range="U+000D-FEFF"> | |
| 59 <font-face-src> | |
| 60 <font-face-uri xlink:href="../resources/Heb.svg#SVGHebrew"/> | |
| 61 </font-face-src> | |
| 62 </font-face> | |
| 63 </defs> | |
| 64 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size= "18"> | |
| 65 <text font-family="Arial" font-size="17" fill="blue" x="10" y="40">unicode-b idi="bidi-override" direction="ltr".</text> | |
| 66 <g font-size="18" font-family="SVGHebrew, 'Ezra SIL SR', serif"> | |
| 67 <text x="10" y="80" unicode-bidi="bidi-override" direction="ltr">Text "אני יכול לאכול זכוכית וזה לא מזיק לי" is in Hebrew</text> | |
| 68 </g> | |
| 69 <text font-family="Arial" font-size="17" fill="blue" x="10" y="140">unicode- bidi="bidi-override" direction="rtl".</text> | |
| 70 <g font-size="18" font-family="SVGHebrew, 'Ezra SIL SR', serif"> | |
| 71 <text x="10" y="180" unicode-bidi="bidi-override" direction="rtl" text-anc hor="end">Text "אני יכול לאכול זכוכית וזה לא מזיק לי" is in Hebrew</text> | |
| 72 </g> | |
| 73 <text font-family="Arial" font-size="17" fill="blue" x="10" y="240">unicode- bidi="normal" direction="rtl".</text> | |
| 74 <g font-size="18" font-family="SVGHebrew, 'Ezra SIL SR', serif"> | |
| 75 <!-- FIXME: We added text-anchor="end" here, the tests was wrong as-is. Al ready reported to SVG WG, will be fixed soon. --> | |
| 76 <text x="10" y="280" unicode-bidi="normal" direction="rtl" text-anchor="en d">Text "אני יכול לאכול זכוכית וזה לא מזיק לי" is in Hebrew</text> | |
| 77 </g> | |
| 78 </g> | |
| 79 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> | |
| 80 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text> | |
| 81 </g> | |
| 82 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke= "#000000"/> | |
| 83 <!-- comment out this watermark once the test is approved --> | |
| 84 <!--<g id="draft-watermark"> | |
| 85 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-w idth="1"/> | |
| 86 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size ="20" x="240" | |
| 87 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white" >DRAFT</text> | |
| 88 </g>--> | |
| 89 <script> | |
| 90 if (window.testRunner) { | |
| 91 testRunner.waitUntilDone(); | |
| 92 pendingFonts = 3; | |
| 93 document.fonts.onloadingdone = document.fonts.onloadingerror = function (e) { | |
| 94 pendingFonts -= e.fontfaces.length; | |
| 95 if (pendingFonts == 0) | |
| 96 testRunner.notifyDone(); | |
| 97 }; | |
| 98 } | |
| 99 </script> | |
| 100 </svg> | |
| OLD | NEW |