diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-12-28 02:00:58 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-12-29 07:46:30 -0500 |
commit | e13894396dca60bcfd75c4ce5112fd14b55f8986 (patch) | |
tree | b32223bbe6653f432270c382b80a06551495ded9 | |
parent | 2fc7ecc3df802afeec3f9f29dc8dc8f5c73deebe (diff) | |
download | gtk+-e13894396dca60bcfd75c4ce5112fd14b55f8986.tar.gz |
Add a CSS node test for entries
-rw-r--r-- | testsuite/css/nodes/Makefile.am | 1 | ||||
-rw-r--r-- | testsuite/css/nodes/entries.nodes | 16 | ||||
-rw-r--r-- | testsuite/css/nodes/entries.ui | 74 |
3 files changed, 91 insertions, 0 deletions
diff --git a/testsuite/css/nodes/Makefile.am b/testsuite/css/nodes/Makefile.am index d6bb93828d..bdf33ea815 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 = \ + entries.ui entries.nodes \ notebook.ui notebook.nodes \ $(NULL) diff --git a/testsuite/css/nodes/entries.nodes b/testsuite/css/nodes/entries.nodes new file mode 100644 index 0000000000..a2b6f5f918 --- /dev/null +++ b/testsuite/css/nodes/entries.nodes @@ -0,0 +1,16 @@ +window visible=0 state=dir-ltr classes=background + decoration visible=1 state=dir-ltr + box visible=0 state=dir-ltr classes=horizontal + label visible=1 state=dir-ltr + label visible=1 state=dir-ltr + label visible=1 state=dir-ltr + entry visible=1 state=dir-ltr + progress visible=1 state=dir-ltr + entry visible=1 state=dir-ltr + entry visible=1 state=dir-ltr + image visible=1 state=dir-ltr classes=left + image visible=1 state=dir-ltr classes=right + spinbutton visible=1 state=dir-ltr classes=horizontal + entry visible=1 state=dir-ltr + button visible=1 state=dir-ltr classes=down + button visible=1 state=dir-ltr classes=up diff --git a/testsuite/css/nodes/entries.ui b/testsuite/css/nodes/entries.ui new file mode 100644 index 0000000000..3d4e4ee3c9 --- /dev/null +++ b/testsuite/css/nodes/entries.ui @@ -0,0 +1,74 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <!-- interface-requires gtk+ 3.0 --> + <object class="GtkAdjustment" id="adjustment1"> + <property name="lower">0.5</property> + <property name="upper">99.5</property> + <property name="page-size">0</property> + <property name="value">45.5</property> + <property name="step-increment">0.5</property> + <property name="page-increment">5.0</property> + </object> + <object class="GtkWindow" id="window1"> + <property name="can_focus">False</property> + <property name="type">popup</property> + <child> + <object class="GtkBox" id="box1"> + <child> + <object class="GtkLabel" id="label1"> + <property name="label">_entry:</property> + <property name="visible">True</property> + <property name="use-underline">True</property> + <property name="mnemonic-widget">entry1</property> + </object> + </child> + <child> + <object class="GtkLabel" id="label2"> + <property name="label">_password entry:</property> + <property name="visible">True</property> + <property name="use-underline">True</property> + <property name="mnemonic-widget">entry2</property> + </object> + </child> + <child> + <object class="GtkLabel" id="label3"> + <property name="label">_spinbutton:</property> + <property name="visible">True</property> + <property name="use-underline">True</property> + <property name="mnemonic-widget">spinbutton1</property> + </object> + </child> + <child> + <object class="GtkEntry" id="entry1"> + <property name="text" translatable="yes">text</property> + <property name="visible">True</property> + <property name="progress-fraction">0.3</property> + </object> + </child> + <child> + <object class="GtkEntry" id="entry2"> + <property name="text" translatable="yes">password text</property> + <property name="visible">True</property> + <property name="visibility">False</property> + <property name="invisible_char">*</property> + <property name="invisible_char_set">True</property> + </object> + </child> + <child> + <object class="GtkEntry" id="entry3"> + <property name="text" translatable="yes">icons</property> + <property name="visible">True</property> + <property name="primary-icon-stock">stock1</property> + <property name="secondary-icon-stock">stock2</property> + </object> + </child> + <child> + <object class="GtkSpinButton" id="spinbutton1"> + <property name="adjustment">adjustment1</property> + <property name="visible">True</property> + </object> + </child> + </object> + </child> + </object> +</interface> |