From d76fb63ba87e45c24ce916275d85a37b07fb3fc7 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 5 Jan 2016 23:24:51 -0500 Subject: [PATCH] Add a test for ltr vs rtl boxes. This tests that horizontal boxes flip their child nodes according to text direction to maintain the left-to-right ordering of child nodes for both text directions. --- testsuite/css/nodes/Makefile.am | 2 ++ testsuite/css/nodes/box.ltr.nodes | 6 ++++++ testsuite/css/nodes/box.ltr.ui | 32 +++++++++++++++++++++++++++++++ testsuite/css/nodes/box.rtl.nodes | 6 ++++++ testsuite/css/nodes/box.rtl.ui | 32 +++++++++++++++++++++++++++++++ 5 files changed, 78 insertions(+) create mode 100644 testsuite/css/nodes/box.ltr.nodes create mode 100644 testsuite/css/nodes/box.ltr.ui create mode 100644 testsuite/css/nodes/box.rtl.nodes create mode 100644 testsuite/css/nodes/box.rtl.ui diff --git a/testsuite/css/nodes/Makefile.am b/testsuite/css/nodes/Makefile.am index 13130b83eb..b73a844e31 100644 --- a/testsuite/css/nodes/Makefile.am +++ b/testsuite/css/nodes/Makefile.am @@ -28,6 +28,8 @@ test_css_nodes_SOURCES = \ $(NULL) test_data = \ + box.ltr.ui box.ltr.nodes \ + box.rtl.ui box.rtl.nodes \ buttons.ui buttons.nodes \ entries.ui entries.nodes \ levelbar.ui levelbar.nodes \ diff --git a/testsuite/css/nodes/box.ltr.nodes b/testsuite/css/nodes/box.ltr.nodes new file mode 100644 index 0000000000..fae4431022 --- /dev/null +++ b/testsuite/css/nodes/box.ltr.nodes @@ -0,0 +1,6 @@ +[window.background:dir(ltr)] + decoration:dir(ltr) + box.horizontal:dir(ltr) + label#label1:dir(ltr) + label#label2:dir(ltr) + label#label3:dir(ltr) diff --git a/testsuite/css/nodes/box.ltr.ui b/testsuite/css/nodes/box.ltr.ui new file mode 100644 index 0000000000..7e774e97ca --- /dev/null +++ b/testsuite/css/nodes/box.ltr.ui @@ -0,0 +1,32 @@ + + + + + False + popup + + + True + horizontal + + + True + label1 + + + + + True + label2 + + + + + True + label3 + + + + + + diff --git a/testsuite/css/nodes/box.rtl.nodes b/testsuite/css/nodes/box.rtl.nodes new file mode 100644 index 0000000000..38e3e59781 --- /dev/null +++ b/testsuite/css/nodes/box.rtl.nodes @@ -0,0 +1,6 @@ +[window.background:dir(rtl)] + decoration:dir(ltr) + box.horizontal:dir(rtl) + label#label3:dir(ltr) + label#label2:dir(ltr) + label#label1:dir(ltr) diff --git a/testsuite/css/nodes/box.rtl.ui b/testsuite/css/nodes/box.rtl.ui new file mode 100644 index 0000000000..7e774e97ca --- /dev/null +++ b/testsuite/css/nodes/box.rtl.ui @@ -0,0 +1,32 @@ + + + + + False + popup + + + True + horizontal + + + True + label1 + + + + + True + label2 + + + + + True + label3 + + + + + +