[gtk+] Add more CSS node tests for notebooks
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Add more CSS node tests for notebooks
- Date: Mon, 18 Jan 2016 13:57:36 +0000 (UTC)
commit 65ae48d707b888d4a5c81d8f52982c0db5e6e96d
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jan 18 07:39:56 2016 -0500
Add more CSS node tests for notebooks
testsuite/css/nodes/Makefile.am | 5 +++-
testsuite/css/nodes/notebook.bottom.nodes | 18 +++++++++++++++
.../css/nodes/{notebook.ui => notebook.bottom.ui} | 23 +++++++++++++++----
testsuite/css/nodes/notebook.left.nodes | 18 +++++++++++++++
.../css/nodes/{notebook.ui => notebook.left.ui} | 23 +++++++++++++++----
testsuite/css/nodes/notebook.nodes | 16 -------------
testsuite/css/nodes/notebook.right.nodes | 18 +++++++++++++++
.../css/nodes/{notebook.ui => notebook.right.ui} | 23 +++++++++++++++----
.../css/nodes/{notebook.ui => notebook.top.ui} | 22 ++++++++++++++----
9 files changed, 129 insertions(+), 37 deletions(-)
---
diff --git a/testsuite/css/nodes/Makefile.am b/testsuite/css/nodes/Makefile.am
index 102852d..c00eaef 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 0000000..0177d13
--- /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.ui b/testsuite/css/nodes/notebook.bottom.ui
similarity index 62%
copy from testsuite/css/nodes/notebook.ui
copy to testsuite/css/nodes/notebook.bottom.ui
index 8fb9a0f..176d2b8 100644
--- a/testsuite/css/nodes/notebook.ui
+++ b/testsuite/css/nodes/notebook.bottom.ui
@@ -5,34 +5,47 @@
<property name="can_focus">False</property>
<property name="type">popup</property>
<child>
- <object class="GtkNotebook" id="notebook1">
+ <object class="GtkNotebook">
<property name="visible">True</property>
+ <property name="tab-pos">bottom</property>
<child>
- <object class="GtkButton" id="page1">
+ <object class="GtkButton">
+ <property name="name">page1</property>
<property name="label" translatable="yes">Yes</property>
<property name="visible">True</property>
</object>
</child>
<child type="tab">
- <object class="GtkLabel" id="tab1">
+ <object class="GtkLabel">
+ <property name="name">tab1</property>
<property name="label" translatable="yes">Tab 1</property>
<property name="visible">True</property>
</object>
</child>
<child>
- <object class="GtkButton" id="page2">
+ <object class="GtkButton">
+ <property name="name">page2</property>
<property name="label" translatable="yes">No</property>
<property name="visible">True</property>
</object>
</child>
<child type="tab">
<object class="GtkLabel" id="tab2">
+ <property name="name">tab2</property>
<property name="label" translatable="yes">Tab 2</property>
<property name="visible">True</property>
</object>
</child>
<child type="action-start">
- <object class="GtkButton" id="action">
+ <object class="GtkButton">
+ <property name="name">start</property>
+ <property name="label" translatable="yes">Action</property>
+ <property name="visible">True</property>
+ </object>
+ </child>
+ <child type="action-end">
+ <object class="GtkButton">
+ <property name="name">end</property>
<property name="label" translatable="yes">Action</property>
<property name="visible">True</property>
</object>
diff --git a/testsuite/css/nodes/notebook.left.nodes b/testsuite/css/nodes/notebook.left.nodes
new file mode 100644
index 0000000..ad04ef9
--- /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.ui b/testsuite/css/nodes/notebook.left.ui
similarity index 63%
copy from testsuite/css/nodes/notebook.ui
copy to testsuite/css/nodes/notebook.left.ui
index 8fb9a0f..6c2d820 100644
--- a/testsuite/css/nodes/notebook.ui
+++ b/testsuite/css/nodes/notebook.left.ui
@@ -5,34 +5,47 @@
<property name="can_focus">False</property>
<property name="type">popup</property>
<child>
- <object class="GtkNotebook" id="notebook1">
+ <object class="GtkNotebook">
<property name="visible">True</property>
+ <property name="tab-pos">left</property>
<child>
- <object class="GtkButton" id="page1">
+ <object class="GtkButton">
+ <property name="name">page1</property>
<property name="label" translatable="yes">Yes</property>
<property name="visible">True</property>
</object>
</child>
<child type="tab">
- <object class="GtkLabel" id="tab1">
+ <object class="GtkLabel">
+ <property name="name">tab1</property>
<property name="label" translatable="yes">Tab 1</property>
<property name="visible">True</property>
</object>
</child>
<child>
- <object class="GtkButton" id="page2">
+ <object class="GtkButton">
+ <property name="name">page2</property>
<property name="label" translatable="yes">No</property>
<property name="visible">True</property>
</object>
</child>
<child type="tab">
<object class="GtkLabel" id="tab2">
+ <property name="name">tab2</property>
<property name="label" translatable="yes">Tab 2</property>
<property name="visible">True</property>
</object>
</child>
<child type="action-start">
- <object class="GtkButton" id="action">
+ <object class="GtkButton">
+ <property name="name">start</property>
+ <property name="label" translatable="yes">Action</property>
+ <property name="visible">True</property>
+ </object>
+ </child>
+ <child type="action-end">
+ <object class="GtkButton">
+ <property name="name">end</property>
<property name="label" translatable="yes">Action</property>
<property name="visible">True</property>
</object>
diff --git a/testsuite/css/nodes/notebook.right.nodes b/testsuite/css/nodes/notebook.right.nodes
new file mode 100644
index 0000000..500331c
--- /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.ui b/testsuite/css/nodes/notebook.right.ui
similarity index 63%
copy from testsuite/css/nodes/notebook.ui
copy to testsuite/css/nodes/notebook.right.ui
index 8fb9a0f..7bea7d9 100644
--- a/testsuite/css/nodes/notebook.ui
+++ b/testsuite/css/nodes/notebook.right.ui
@@ -5,34 +5,47 @@
<property name="can_focus">False</property>
<property name="type">popup</property>
<child>
- <object class="GtkNotebook" id="notebook1">
+ <object class="GtkNotebook">
<property name="visible">True</property>
+ <property name="tab-pos">right</property>
<child>
- <object class="GtkButton" id="page1">
+ <object class="GtkButton">
+ <property name="name">page1</property>
<property name="label" translatable="yes">Yes</property>
<property name="visible">True</property>
</object>
</child>
<child type="tab">
- <object class="GtkLabel" id="tab1">
+ <object class="GtkLabel">
+ <property name="name">tab1</property>
<property name="label" translatable="yes">Tab 1</property>
<property name="visible">True</property>
</object>
</child>
<child>
- <object class="GtkButton" id="page2">
+ <object class="GtkButton">
+ <property name="name">page2</property>
<property name="label" translatable="yes">No</property>
<property name="visible">True</property>
</object>
</child>
<child type="tab">
<object class="GtkLabel" id="tab2">
+ <property name="name">tab2</property>
<property name="label" translatable="yes">Tab 2</property>
<property name="visible">True</property>
</object>
</child>
<child type="action-start">
- <object class="GtkButton" id="action">
+ <object class="GtkButton">
+ <property name="name">start</property>
+ <property name="label" translatable="yes">Action</property>
+ <property name="visible">True</property>
+ </object>
+ </child>
+ <child type="action-end">
+ <object class="GtkButton">
+ <property name="name">end</property>
<property name="label" translatable="yes">Action</property>
<property name="visible">True</property>
</object>
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 8fb9a0f..a080a52 100644
--- a/testsuite/css/nodes/notebook.ui
+++ b/testsuite/css/nodes/notebook.top.ui
@@ -5,34 +5,46 @@
<property name="can_focus">False</property>
<property name="type">popup</property>
<child>
- <object class="GtkNotebook" id="notebook1">
+ <object class="GtkNotebook">
<property name="visible">True</property>
<child>
- <object class="GtkButton" id="page1">
+ <object class="GtkButton">
+ <property name="name">page1</property>
<property name="label" translatable="yes">Yes</property>
<property name="visible">True</property>
</object>
</child>
<child type="tab">
- <object class="GtkLabel" id="tab1">
+ <object class="GtkLabel">
+ <property name="name">tab1</property>
<property name="label" translatable="yes">Tab 1</property>
<property name="visible">True</property>
</object>
</child>
<child>
- <object class="GtkButton" id="page2">
+ <object class="GtkButton">
+ <property name="name">page2</property>
<property name="label" translatable="yes">No</property>
<property name="visible">True</property>
</object>
</child>
<child type="tab">
<object class="GtkLabel" id="tab2">
+ <property name="name">tab2</property>
<property name="label" translatable="yes">Tab 2</property>
<property name="visible">True</property>
</object>
</child>
<child type="action-start">
- <object class="GtkButton" id="action">
+ <object class="GtkButton">
+ <property name="name">start</property>
+ <property name="label" translatable="yes">Action</property>
+ <property name="visible">True</property>
+ </object>
+ </child>
+ <child type="action-end">
+ <object class="GtkButton">
+ <property name="name">end</property>
<property name="label" translatable="yes">Action</property>
<property name="visible">True</property>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]