diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-01-07 19:05:40 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-01-07 19:05:40 -0500 |
commit | 851d5f1c7d66a726f483b71c0aba22c44ba3f2ab (patch) | |
tree | 76cd4fd756a8b15f8064bc88dc6921ac17dd30b5 /testsuite | |
parent | 980f3589f522160144ebf5b15fd6339456b54f42 (diff) | |
download | gtk+-851d5f1c7d66a726f483b71c0aba22c44ba3f2ab.tar.gz |
Add a reftest for GtkActionBar child ordering
This shows that GtkActionBar and GtkBox treat pack-start/-end
the same.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/reftests/Makefile.am | 2 | ||||
-rw-r--r-- | testsuite/reftests/actionbar.ref.ui | 56 | ||||
-rw-r--r-- | testsuite/reftests/actionbar.ui | 57 |
3 files changed, 115 insertions, 0 deletions
diff --git a/testsuite/reftests/Makefile.am b/testsuite/reftests/Makefile.am index 30c471de0e..d62f066256 100644 --- a/testsuite/reftests/Makefile.am +++ b/testsuite/reftests/Makefile.am @@ -31,6 +31,8 @@ EXTRA_DIST += \ $(NULL) testdata = \ + actionbar.ref.ui \ + actionbar.ui \ alignment-props.css \ alignment-props.ref.ui \ alignment-props.ui \ diff --git a/testsuite/reftests/actionbar.ref.ui b/testsuite/reftests/actionbar.ref.ui new file mode 100644 index 0000000000..35de854f61 --- /dev/null +++ b/testsuite/reftests/actionbar.ref.ui @@ -0,0 +1,56 @@ +<?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="GtkBox"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <child> + <object class="GtkButton"> + <property name="visible">True</property> + <property name="label">1</property> + </object> + <packing> + <property name="pack-type">start</property> + </packing> + </child> + <child> + <object class="GtkButton"> + <property name="visible">True</property> + <property name="label">2</property> + </object> + <packing> + <property name="pack-type">start</property> + </packing> + </child> + <child> + <object class="GtkButton"> + <property name="visible">True</property> + <property name="label">Center</property> + </object> + </child> + <child> + <object class="GtkButton"> + <property name="visible">True</property> + <property name="label">1</property> + </object> + <packing> + <property name="pack-type">end</property> + </packing> + </child> + <child> + <object class="GtkButton"> + <property name="visible">True</property> + <property name="label">2</property> + </object> + <packing> + <property name="pack-type">end</property> + </packing> + </child> + </object> + </child> + </object> +</interface> diff --git a/testsuite/reftests/actionbar.ui b/testsuite/reftests/actionbar.ui new file mode 100644 index 0000000000..28a772915b --- /dev/null +++ b/testsuite/reftests/actionbar.ui @@ -0,0 +1,57 @@ +<?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="GtkActionBar"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="spacing">0</property> + <child> + <object class="GtkButton"> + <property name="visible">True</property> + <property name="label">1</property> + </object> + <packing> + <property name="pack-type">start</property> + </packing> + </child> + <child> + <object class="GtkButton"> + <property name="visible">True</property> + <property name="label">2</property> + </object> + <packing> + <property name="pack-type">start</property> + </packing> + </child> + <child type="center"> + <object class="GtkButton"> + <property name="visible">True</property> + <property name="label">Center</property> + </object> + </child> + <child> + <object class="GtkButton"> + <property name="visible">True</property> + <property name="label">1</property> + </object> + <packing> + <property name="pack-type">end</property> + </packing> + </child> + <child> + <object class="GtkButton"> + <property name="visible">True</property> + <property name="label">2</property> + </object> + <packing> + <property name="pack-type">end</property> + </packing> + </child> + </object> + </child> + </object> +</interface> |