summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-12-28 02:03:29 -0500
committerMatthias Clasen <mclasen@redhat.com>2015-12-29 07:46:30 -0500
commit2fc7ecc3df802afeec3f9f29dc8dc8f5c73deebe (patch)
tree71affac77d44d6c55bee18815c4331a5b45d0f8d
parenta3aeef37608503da489eead470c55925ab2674ce (diff)
downloadgtk+-2fc7ecc3df802afeec3f9f29dc8dc8f5c73deebe.tar.gz
Add a CSS node test for notebooks
-rw-r--r--testsuite/css/nodes/Makefile.am1
-rw-r--r--testsuite/css/nodes/notebook.nodes15
-rw-r--r--testsuite/css/nodes/notebook.ui43
3 files changed, 59 insertions, 0 deletions
diff --git a/testsuite/css/nodes/Makefile.am b/testsuite/css/nodes/Makefile.am
index c2273b7d79..d6bb93828d 100644
--- a/testsuite/css/nodes/Makefile.am
+++ b/testsuite/css/nodes/Makefile.am
@@ -25,6 +25,7 @@ test_css_nodes_SOURCES = \
test-css-nodes.c
test_data = \
+ notebook.ui notebook.nodes \
$(NULL)
EXTRA_DIST += $(test_in_files) $(test_data)
diff --git a/testsuite/css/nodes/notebook.nodes b/testsuite/css/nodes/notebook.nodes
new file mode 100644
index 0000000000..0264855ed6
--- /dev/null
+++ b/testsuite/css/nodes/notebook.nodes
@@ -0,0 +1,15 @@
+window visible=0 state=dir-ltr classes=background
+ decoration visible=1 state=dir-ltr
+ notebook visible=1 state=dir-ltr classes=frame
+ header visible=1 state=dir-ltr classes=top
+ button visible=1 state=dir-ltr classes=text-button
+ label visible=1 state=dir-ltr
+ tabs visible=1 state=dir-ltr
+ tab visible=1 state=active|dir-ltr
+ label visible=1 state=dir-ltr
+ tab visible=1 state=dir-ltr
+ label visible=1 state=dir-ltr
+ button visible=1 state=dir-ltr classes=text-button
+ label visible=1 state=dir-ltr
+ button visible=1 state=dir-ltr classes=text-button
+ label visible=1 state=dir-ltr
diff --git a/testsuite/css/nodes/notebook.ui b/testsuite/css/nodes/notebook.ui
new file mode 100644
index 0000000000..8fb9a0f1ed
--- /dev/null
+++ b/testsuite/css/nodes/notebook.ui
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <!-- interface-requires gtk+ 3.0 -->
+ <object class="GtkWindow" id="window1">
+ <property name="can_focus">False</property>
+ <property name="type">popup</property>
+ <child>
+ <object class="GtkNotebook" id="notebook1">
+ <property name="visible">True</property>
+ <child>
+ <object class="GtkButton" id="page1">
+ <property name="label" translatable="yes">Yes</property>
+ <property name="visible">True</property>
+ </object>
+ </child>
+ <child type="tab">
+ <object class="GtkLabel" id="tab1">
+ <property name="label" translatable="yes">Tab 1</property>
+ <property name="visible">True</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkButton" id="page2">
+ <property name="label" translatable="yes">No</property>
+ <property name="visible">True</property>
+ </object>
+ </child>
+ <child type="tab">
+ <object class="GtkLabel" id="tab2">
+ <property name="label" translatable="yes">Tab 2</property>
+ <property name="visible">True</property>
+ </object>
+ </child>
+ <child type="action-start">
+ <object class="GtkButton" id="action">
+ <property name="label" translatable="yes">Action</property>
+ <property name="visible">True</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>