Test for bug 869833
authorSimon Montagu <smontagu@smontagu.org>
Mon, 18 Nov 2013 12:31:06 +0200
changeset 156076 03c3f2a8510262924bf0a4b4d95d382fe3f6777c
parent 156075 fc3679786f704c0e0a750c895bf440df7843502d
child 156077 04054b2172f3a44e72bb5dbf5d1866a8b6c29733
push id36288
push usersmontagu@mozilla.com
push dateMon, 18 Nov 2013 18:14:35 +0000
treeherdermozilla-inbound@04054b2172f3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs869833
milestone28.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Test for bug 869833
layout/reftests/bidi/869833-1-ref.xul
layout/reftests/bidi/869833-1.xul
layout/reftests/bidi/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bidi/869833-1-ref.xul
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet type="text/css" href="data:text/css,
+label.ltr { direction: ltr; }
+label.rtl { direction: rtl; }
+tree { height: 100px; }
+"?>
+<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+  <tree>
+    <treecols>
+      <treecol flex="1"/>
+    </treecols>
+    <treechildren>
+      <treeitem>
+        <treerow>
+          <treecell label="&#x202a;Hello!&#x202c;"/>
+	</treerow>
+      </treeitem>
+      <treeitem>
+	<treerow>
+          <treecell label="&#x202b;שלום!&#x202c;"/>
+	</treerow>
+      </treeitem>
+      <treeitem>
+	<treerow>
+          <treecell label="&#x202b;123 إفتح يا سمسم !&#x202c;"/>
+        </treerow>
+      </treeitem>
+    </treechildren>
+  </tree>
+  <vbox>
+    <hbox>
+      <label class="ltr" value="Hello!"/>
+    </hbox>
+    <hbox>
+      <label class="rtl" value="שלום!"/>
+    </hbox>
+    <hbox>
+      <label class="rtl" value="123 إفتح يا سمسم !"/>
+    </hbox>
+  </vbox>
+</window>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bidi/869833-1.xul
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet type="text/css" href="data:text/css,
+treechildren::-moz-tree-cell, label { unicode-bidi: -moz-plaintext; }
+tree { height: 100px; }
+"?>
+<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+  <tree>
+    <treecols>
+      <treecol flex="1"/>
+    </treecols>
+    <treechildren>
+      <treeitem>
+        <treerow>
+          <treecell label="Hello!"/>
+	</treerow>
+      </treeitem>
+      <treeitem>
+	<treerow>
+          <treecell label="שלום!"/>
+	</treerow>
+      </treeitem>
+      <treeitem>
+	<treerow>
+          <treecell label="123 إفتح يا سمسم !"/>
+        </treerow>
+      </treeitem>
+    </treechildren>
+  </tree>
+  <vbox>
+    <hbox>
+      <label value="Hello!"/>
+    </hbox>
+    <hbox>
+      <label value="שלום!"/>
+    </hbox>
+    <hbox>
+      <label value="123 إفتح يا سمسم !"/>
+    </hbox>
+  </vbox>
+</window>
--- a/layout/reftests/bidi/reftest.list
+++ b/layout/reftests/bidi/reftest.list
@@ -133,10 +133,11 @@ skip-if(B2G) == 726420-1.html 726420-1-r
 == 729047-1.html 729047-1-ref.html
 == 730562-1.html 730562-1-ref.html
 == 746987-1.html 746987-1-ref.html
 == 746987-2.html 746987-2-ref.html
 == 746987-3.html 746987-3-ref.html
 == 746987-4.html 746987-4-ref.html
 == 779003-1.html 779003-1-ref.html
 == 779003-1-dynamic.html 779003-1-ref.html
+== 869833-1.xul 869833-1-ref.xul
 == 922530-1.html 922530-1-ref.html
 == 922550-1.html 922550-1-ref.html