From 65ae48d707b888d4a5c81d8f52982c0db5e6e96d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 18 Jan 2016 07:39:56 -0500 Subject: [PATCH] Add more CSS node tests for notebooks --- testsuite/css/nodes/Makefile.am | 5 +- testsuite/css/nodes/notebook.bottom.nodes | 18 ++++++ testsuite/css/nodes/notebook.bottom.ui | 56 +++++++++++++++++++ testsuite/css/nodes/notebook.left.nodes | 18 ++++++ testsuite/css/nodes/notebook.left.ui | 56 +++++++++++++++++++ testsuite/css/nodes/notebook.nodes | 16 ------ testsuite/css/nodes/notebook.right.nodes | 18 ++++++ testsuite/css/nodes/notebook.right.ui | 56 +++++++++++++++++++ .../nodes/{notebook.ui => notebook.top.ui} | 22 ++++++-- 9 files changed, 243 insertions(+), 22 deletions(-) create mode 100644 testsuite/css/nodes/notebook.bottom.nodes create mode 100644 testsuite/css/nodes/notebook.bottom.ui create mode 100644 testsuite/css/nodes/notebook.left.nodes create mode 100644 testsuite/css/nodes/notebook.left.ui delete mode 100644 testsuite/css/nodes/notebook.nodes create mode 100644 testsuite/css/nodes/notebook.right.nodes create mode 100644 testsuite/css/nodes/notebook.right.ui rename testsuite/css/nodes/{notebook.ui => notebook.top.ui} (64%) diff --git a/testsuite/css/nodes/Makefile.am b/testsuite/css/nodes/Makefile.am index 102852df39..c00eaef18b 100644 --- a/testsuite/css/nodes/Makefile.am +++ b/testsuite/css/nodes/Makefile.am @@ -38,7 +38,10 @@ test_data = \ expander.rtl.ui expander.rtl.nodes \ levelbar.ltr.ui levelbar.ltr.nodes \ levelbar.rtl.ui levelbar.rtl.nodes \ - notebook.ui notebook.nodes \ + notebook.top.ui notebook.top.nodes \ + notebook.left.ui notebook.left.nodes \ + notebook.right.ui notebook.right.nodes \ + notebook.bottom.ui notebook.bottom.nodes \ paned.ltr.ui paned.ltr.nodes \ paned.rtl.ui paned.rtl.nodes \ progressbar.ui progressbar.nodes \ diff --git a/testsuite/css/nodes/notebook.bottom.nodes b/testsuite/css/nodes/notebook.bottom.nodes new file mode 100644 index 0000000000..0177d1349a --- /dev/null +++ b/testsuite/css/nodes/notebook.bottom.nodes @@ -0,0 +1,18 @@ +[window.background:dir(ltr)] + decoration:dir(ltr) + notebook.frame:dir(ltr) + stack:dir(ltr) + button#page1.text-button:dir(ltr) + label:dir(ltr) + button#page2.text-button:dir(ltr) + label:dir(ltr) + header.bottom:dir(ltr) + button#start.text-button:dir(ltr) + label:dir(ltr) + tabs:dir(ltr) + tab:active:dir(ltr) + label#tab1:dir(ltr) + tab:dir(ltr) + label#tab2:dir(ltr) + button#end.text-button:dir(ltr) + label:dir(ltr) diff --git a/testsuite/css/nodes/notebook.bottom.ui b/testsuite/css/nodes/notebook.bottom.ui new file mode 100644 index 0000000000..176d2b8664 --- /dev/null +++ b/testsuite/css/nodes/notebook.bottom.ui @@ -0,0 +1,56 @@ + + + + + False + popup + + + True + bottom + + + page1 + Yes + True + + + + + tab1 + Tab 1 + True + + + + + page2 + No + True + + + + + tab2 + Tab 2 + True + + + + + start + Action + True + + + + + end + Action + True + + + + + + diff --git a/testsuite/css/nodes/notebook.left.nodes b/testsuite/css/nodes/notebook.left.nodes new file mode 100644 index 0000000000..ad04ef9ebd --- /dev/null +++ b/testsuite/css/nodes/notebook.left.nodes @@ -0,0 +1,18 @@ +[window.background:dir(ltr)] + decoration:dir(ltr) + notebook.frame:dir(ltr) + header.left:dir(ltr) + button#start.text-button:dir(ltr) + label:dir(ltr) + tabs:dir(ltr) + tab:active:dir(ltr) + label#tab1:dir(ltr) + tab:dir(ltr) + label#tab2:dir(ltr) + button#end.text-button:dir(ltr) + label:dir(ltr) + stack:dir(ltr) + button#page1.text-button:dir(ltr) + label:dir(ltr) + button#page2.text-button:dir(ltr) + label:dir(ltr) diff --git a/testsuite/css/nodes/notebook.left.ui b/testsuite/css/nodes/notebook.left.ui new file mode 100644 index 0000000000..6c2d820ac0 --- /dev/null +++ b/testsuite/css/nodes/notebook.left.ui @@ -0,0 +1,56 @@ + + + + + False + popup + + + True + left + + + page1 + Yes + True + + + + + tab1 + Tab 1 + True + + + + + page2 + No + True + + + + + tab2 + Tab 2 + True + + + + + start + Action + True + + + + + end + Action + True + + + + + + diff --git a/testsuite/css/nodes/notebook.nodes b/testsuite/css/nodes/notebook.nodes deleted file mode 100644 index 0e1288e14e..0000000000 --- a/testsuite/css/nodes/notebook.nodes +++ /dev/null @@ -1,16 +0,0 @@ -[window.background:dir(ltr)] - decoration:dir(ltr) - notebook.frame:dir(ltr) - header.top:dir(ltr) - button.text-button:dir(ltr) - label:dir(ltr) - tabs:dir(ltr) - tab:active:dir(ltr) - label:dir(ltr) - tab:dir(ltr) - label:dir(ltr) - stack:dir(ltr) - button.text-button:dir(ltr) - label:dir(ltr) - button.text-button:dir(ltr) - label:dir(ltr) diff --git a/testsuite/css/nodes/notebook.right.nodes b/testsuite/css/nodes/notebook.right.nodes new file mode 100644 index 0000000000..500331cc50 --- /dev/null +++ b/testsuite/css/nodes/notebook.right.nodes @@ -0,0 +1,18 @@ +[window.background:dir(ltr)] + decoration:dir(ltr) + notebook.frame:dir(ltr) + stack:dir(ltr) + button#page1.text-button:dir(ltr) + label:dir(ltr) + button#page2.text-button:dir(ltr) + label:dir(ltr) + header.right:dir(ltr) + button#start.text-button:dir(ltr) + label:dir(ltr) + tabs:dir(ltr) + tab:active:dir(ltr) + label#tab1:dir(ltr) + tab:dir(ltr) + label#tab2:dir(ltr) + button#end.text-button:dir(ltr) + label:dir(ltr) diff --git a/testsuite/css/nodes/notebook.right.ui b/testsuite/css/nodes/notebook.right.ui new file mode 100644 index 0000000000..7bea7d947e --- /dev/null +++ b/testsuite/css/nodes/notebook.right.ui @@ -0,0 +1,56 @@ + + + + + False + popup + + + True + right + + + page1 + Yes + True + + + + + tab1 + Tab 1 + True + + + + + page2 + No + True + + + + + tab2 + Tab 2 + True + + + + + start + Action + True + + + + + end + Action + True + + + + + + diff --git a/testsuite/css/nodes/notebook.ui b/testsuite/css/nodes/notebook.top.ui similarity index 64% rename from testsuite/css/nodes/notebook.ui rename to testsuite/css/nodes/notebook.top.ui index 8fb9a0f1ed..a080a52d1d 100644 --- a/testsuite/css/nodes/notebook.ui +++ b/testsuite/css/nodes/notebook.top.ui @@ -5,34 +5,46 @@ False popup - + True - + + page1 Yes True - + + tab1 Tab 1 True - + + page2 No True + tab2 Tab 2 True - + + start + Action + True + + + + + end Action True