diff options
author | Benjamin Otte <otte@redhat.com> | 2011-05-10 01:25:26 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2011-05-10 01:39:14 +0200 |
commit | d01d90fccde94c25fbd41360d75893c40ac4ee07 (patch) | |
tree | 5bae1294c10698ac2dd1faf3187eb143f80ef39e /tests/reftests | |
parent | f9c60b109a321e7abb0054a0528a3bb82b0903e0 (diff) | |
download | gtk+-d01d90fccde94c25fbd41360d75893c40ac4ee07.tar.gz |
reftests: Add test for undersized children of GtkPaned
Tests the recent fixes done in 206b9f940d632dd0ed10ab8046777956872555eb
and 6bda6f0c580cbdc5d154bb8e249260d1cdc1b88b
Diffstat (limited to 'tests/reftests')
-rw-r--r-- | tests/reftests/Makefile.am | 3 | ||||
-rw-r--r-- | tests/reftests/paned-undersized.css | 3 | ||||
-rw-r--r-- | tests/reftests/paned-undersized.ref.ui | 39 | ||||
-rw-r--r-- | tests/reftests/paned-undersized.ui | 51 |
4 files changed, 96 insertions, 0 deletions
diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am index f5eef322fb..7e5ac9fdc8 100644 --- a/tests/reftests/Makefile.am +++ b/tests/reftests/Makefile.am @@ -49,6 +49,9 @@ EXTRA_DIST += \ misc-alignment.ref.ui \ nonresizable-size.ref.ui \ nonresizable-size.ui \ + paned-undersized.css \ + paned-undersized.ref.ui \ + paned-undersized.ui \ quit-mnemonic.ref.ui \ quit-mnemonic.ui \ simple.ref.ui \ diff --git a/tests/reftests/paned-undersized.css b/tests/reftests/paned-undersized.css new file mode 100644 index 0000000000..0d0aae9909 --- /dev/null +++ b/tests/reftests/paned-undersized.css @@ -0,0 +1,3 @@ +GtkEventBox { + background-color: red; +} diff --git a/tests/reftests/paned-undersized.ref.ui b/tests/reftests/paned-undersized.ref.ui new file mode 100644 index 0000000000..fa42f31f0d --- /dev/null +++ b/tests/reftests/paned-undersized.ref.ui @@ -0,0 +1,39 @@ +<?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> + <property name="height_request">120</property> + <child> + <object class="GtkPaned" id="paned1"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="orientation">vertical</property> + <property name="position">10</property> + <child> + <object class="GtkEventBox" id="eventbox1"> + <property name="width_request">50</property> + <property name="height_request">10</property> + <property name="visible">True</property> + <property name="can_focus">False</property> + </object> + <packing> + <property name="resize">False</property> + <property name="shrink">False</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="label1"> + <property name="visible">True</property> + <property name="can_focus">False</property> + </object> + <packing> + <property name="resize">True</property> + <property name="shrink">True</property> + </packing> + </child> + </object> + </child> + </object> +</interface> diff --git a/tests/reftests/paned-undersized.ui b/tests/reftests/paned-undersized.ui new file mode 100644 index 0000000000..7c073e4b76 --- /dev/null +++ b/tests/reftests/paned-undersized.ui @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <!-- interface-requires gtk+ 3.0 --> + <object class="GtkWindow" id="window1"> + <property name="height_request">120</property> + <property name="can_focus">False</property> + <property name="type">popup</property> + <child> + <object class="GtkPaned" id="paned1"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="orientation">vertical</property> + <property name="position">10</property> + <child> + <object class="GtkGrid" id="grid1"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <child> + <object class="GtkEventBox" id="eventbox1"> + <property name="width_request">50</property> + <property name="height_request">50</property> + <property name="visible">True</property> + <property name="can_focus">False</property> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">0</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + </object> + <packing> + <property name="resize">False</property> + <property name="shrink">True</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="label1"> + <property name="visible">True</property> + <property name="can_focus">False</property> + </object> + <packing> + <property name="resize">True</property> + <property name="shrink">True</property> + </packing> + </child> + </object> + </child> + </object> +</interface> |