summaryrefslogtreecommitdiff
path: root/testsuite/reftests/center-center-200x200-picture-in-200x100.ui
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2021-10-21 03:32:32 +0200
committerBenjamin Otte <otte@redhat.com>2021-10-22 17:51:41 +0200
commit2113a18a18a81e4df2e92138ee44cad8e5a3c330 (patch)
treed68fdc342e929af27f0cf9c93a545d0a202312be /testsuite/reftests/center-center-200x200-picture-in-200x100.ui
parent1606a411162c87a2de4bfdf686bd2b6e972b36e2 (diff)
downloadgtk+-2113a18a18a81e4df2e92138ee44cad8e5a3c330.tar.gz
testsuite: Add lots of reftests for picture sizing
Have square images in the following sizes: * 20 * 100 * 150 * 200 * 300 and place them in a can-shrink Picture allocated at the sizes: * 200x100 * 100x200 and set align to center/center. That's 10 combinations and they should all do the right thing.
Diffstat (limited to 'testsuite/reftests/center-center-200x200-picture-in-200x100.ui')
-rw-r--r--testsuite/reftests/center-center-200x200-picture-in-200x100.ui24
1 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/reftests/center-center-200x200-picture-in-200x100.ui b/testsuite/reftests/center-center-200x200-picture-in-200x100.ui
new file mode 100644
index 0000000000..6e787008fa
--- /dev/null
+++ b/testsuite/reftests/center-center-200x200-picture-in-200x100.ui
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <object class="GtkWindow">
+ <property name="width_request">200</property>
+ <property name="height_request">100</property>
+ <property name="decorated">0</property>
+ <child>
+ <object class="GtkOverlay">
+ <child type="overlay">
+ <object class="GtkPicture">
+ <property name="paintable">green-200x200.png</property>
+ <property name="keep-aspect-ratio">0</property>
+ <property name="can-shrink">1</property>
+ <property name="halign">center</property>
+ <property name="valign">center</property>
+ <layout>
+ <property name="measure">0</property>
+ </layout>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>