Tests for bidi in SVG. a=test
authorSimon Montagu <smontagu@smontagu.org>
Tue, 04 Jan 2011 00:49:44 -0800
changeset 59829 e8c4962380891461eb420959b3efd4ffdcfb084b
parent 59828 2a0d0ed04874772ed05106229c999493944d12c9
child 59830 5a289c47df1accd356952cad806625f372025688
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewerstest
milestone2.0b9pre
Tests for bidi in SVG. a=test
layout/reftests/bidi/bidiSVG-01-ref.svg
layout/reftests/bidi/bidiSVG-01.svg
layout/reftests/bidi/bidiSVG-02-ref.svg
layout/reftests/bidi/bidiSVG-02.svg
layout/reftests/bidi/bidiSVG-03-ref.svg
layout/reftests/bidi/bidiSVG-03.svg
layout/reftests/bidi/bidiSVG-04-ref.svg
layout/reftests/bidi/bidiSVG-04.svg
layout/reftests/bidi/bidiSVG-05-ref.svg
layout/reftests/bidi/bidiSVG-05.svg
layout/reftests/bidi/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bidi/bidiSVG-01-ref.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">
+  <text x="100" y="20">Bidi in SVG</text>
+</svg>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bidi/bidiSVG-01.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">
+  <text x="100" y="20">&#x202e;GVS ni idiB&#x202c;</text>
+</svg>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bidi/bidiSVG-02-ref.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="800" height="200">
+  <text x="100" y="20">&#x202d;left-to-right text תירבע םע&#x202c;</text>
+</svg>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bidi/bidiSVG-02.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="800" height="200">
+  <text x="100" y="20">left-to-right text עם עברית</text>
+</svg>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bidi/bidiSVG-03-ref.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="800" height="200">
+  <text x="100" y="20" direction="ltr" unicode-bidi="bidi-override">in right-to-left element תירבע םע left-to-right text</text>
+</svg>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bidi/bidiSVG-03.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="800" height="200">
+  <text x="100" y="20" direction="rtl" unicode-bidi="embed">left-to-right text עם עברית in right-to-left element</text>
+</svg>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bidi/bidiSVG-04-ref.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="800" height="200">
+  <text x="100" y="20" direction="ltr" unicode-bidi="bidi-override">&#x0628;&gt;&#x0627;</text>
+</svg>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bidi/bidiSVG-04.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="800" height="200">
+  <text x="100" y="20" direction="rtl" unicode-bidi="embed">&#x0627;&lt;&#x0628;</text>
+</svg>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bidi/bidiSVG-05-ref.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="800" height="200">
+ <text x="100" y="20" unicode-bidi="bidi-override">&#x1090C;&#x1090B;&#x10914;&#x10905;&#x10913;&#x10909;</text>
+</svg>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bidi/bidiSVG-05.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="800" height="200">
+  <text x="100" y="20">&#x10909;&#x10913;&#x10905;&#x10914;&#x1090B;&#x1090C;</text>
+</svg>
--- a/layout/reftests/bidi/reftest.list
+++ b/layout/reftests/bidi/reftest.list
@@ -4,16 +4,21 @@
 == bidi-001-v.html bidi-001-ref.html
 == bidi-002.html bidi-002-ref.html
 == bidi-003.html bidi-003-ref.html
 == bidi-004.html bidi-004-ref.html
 == bidi-004-j.html bidi-004-ref.html
 == bidi-005.html bidi-005-ref.html
 == bidi-006.html bidi-006-ref.html
 == bidi-006-j.html bidi-006-ref.html
+== bidiSVG-01.svg bidiSVG-01-ref.svg
+== bidiSVG-02.svg bidiSVG-02-ref.svg
+== bidiSVG-03.svg bidiSVG-03-ref.svg
+== bidiSVG-04.svg bidiSVG-04-ref.svg
+== bidiSVG-05.svg bidiSVG-05-ref.svg
 random-if(layersGPUAccelerated) == visualmarquee.html marquee-ref.html
 random-if(layersGPUAccelerated) == logicalmarquee.html marquee-ref.html
 == visualmarquee.html logicalmarquee.html
 # test for glyph mirroring in right-to-left text
 == mirroring-01.html mirroring-01-ref.html
 # quote marks are not supposed to mirror, but Unicode 5.0 said they should, so some systems do it
 random-if(cocoaWidget) == mirroring-02.html mirroring-02-ref.html
 == mixedChartype-00.html mixedChartype-00-ref.html