diff options
author | Matthias Clasen <mclasen@redhat.com> | 2016-02-15 14:20:48 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2016-02-15 14:20:48 -0500 |
commit | c30d542a17e78cfff1dd0a949dfa4f7df942604f (patch) | |
tree | 85097cb9afaab43434b3d4d605a7df73736aa01b /testsuite/css | |
parent | 38d0d0a687c0c7416188cd6095ae4ebf69dc4f53 (diff) | |
download | gtk+-c30d542a17e78cfff1dd0a949dfa4f7df942604f.tar.gz |
Some more CSS node tests for notebooks
Diffstat (limited to 'testsuite/css')
-rw-r--r-- | testsuite/css/nodes/Makefile.am | 2 | ||||
-rw-r--r-- | testsuite/css/nodes/notebook-arrows.nodes | 16 | ||||
-rw-r--r-- | testsuite/css/nodes/notebook-arrows.ui | 42 | ||||
-rw-r--r-- | testsuite/css/nodes/notebook-arrows2.nodes | 16 | ||||
-rw-r--r-- | testsuite/css/nodes/notebook-arrows2.ui | 43 |
5 files changed, 119 insertions, 0 deletions
diff --git a/testsuite/css/nodes/Makefile.am b/testsuite/css/nodes/Makefile.am index a7ceefc99e..358a14cd62 100644 --- a/testsuite/css/nodes/Makefile.am +++ b/testsuite/css/nodes/Makefile.am @@ -40,6 +40,8 @@ test_data = \ expander.rtl.ui expander.rtl.nodes \ levelbar.ltr.ui levelbar.ltr.nodes \ levelbar.rtl.ui levelbar.rtl.nodes \ + notebook-arrows.ui notebook-arrows.nodes \ + notebook-arrows2.ui notebook-arrows2.nodes \ notebook.top.ltr.ui notebook.top.ltr.nodes \ notebook.top.rtl.ui notebook.top.rtl.nodes \ notebook.left.ltr.ui notebook.left.ltr.nodes \ diff --git a/testsuite/css/nodes/notebook-arrows.nodes b/testsuite/css/nodes/notebook-arrows.nodes new file mode 100644 index 0000000000..ccc7a4c531 --- /dev/null +++ b/testsuite/css/nodes/notebook-arrows.nodes @@ -0,0 +1,16 @@ +[window.background:dir(ltr)] + decoration:dir(ltr) + notebook.frame:dir(ltr) + header.top:dir(ltr) + tabs:dir(ltr) + arrow.down:disabled:dir(ltr) + tab:active:dir(ltr) + label#tab1:dir(ltr) + tab:dir(ltr) + label#tab2:dir(ltr) + arrow.up: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-arrows.ui b/testsuite/css/nodes/notebook-arrows.ui new file mode 100644 index 0000000000..a296ac3e68 --- /dev/null +++ b/testsuite/css/nodes/notebook-arrows.ui @@ -0,0 +1,42 @@ +<?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"> + <property name="visible">True</property> + <property name="scrollable">True</property> + <child> + <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"> + <property name="name">tab1</property> + <property name="label" translatable="yes">Tab 1</property> + <property name="visible">True</property> + </object> + </child> + <child> + <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> + </object> + </child> + </object> +</interface> diff --git a/testsuite/css/nodes/notebook-arrows2.nodes b/testsuite/css/nodes/notebook-arrows2.nodes new file mode 100644 index 0000000000..ccc7a4c531 --- /dev/null +++ b/testsuite/css/nodes/notebook-arrows2.nodes @@ -0,0 +1,16 @@ +[window.background:dir(ltr)] + decoration:dir(ltr) + notebook.frame:dir(ltr) + header.top:dir(ltr) + tabs:dir(ltr) + arrow.down:disabled:dir(ltr) + tab:active:dir(ltr) + label#tab1:dir(ltr) + tab:dir(ltr) + label#tab2:dir(ltr) + arrow.up: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-arrows2.ui b/testsuite/css/nodes/notebook-arrows2.ui new file mode 100644 index 0000000000..5098dbb08f --- /dev/null +++ b/testsuite/css/nodes/notebook-arrows2.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"> + <property name="visible">True</property> + <property name="scrollable">True</property> + <child> + <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"> + <property name="name">tab1</property> + <property name="label" translatable="yes">Tab 1</property> + <property name="visible">True</property> + </object> + </child> + <child> + <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> + <property name="page">-1</property> + </object> + </child> + </object> +</interface> |