reftests: Test that nonresizable windows get the right size
We want the default size, not the minimum one. This tests the fixes from
4f23dc34be
This commit is contained in:
@ -36,5 +36,7 @@ EXTRA_DIST += \
|
|||||||
label-sizing.ui \
|
label-sizing.ui \
|
||||||
label-small-ellipsized.ref.ui \
|
label-small-ellipsized.ref.ui \
|
||||||
label-small-ellipsized.ui \
|
label-small-ellipsized.ui \
|
||||||
|
nonresizable-size.ref.ui \
|
||||||
|
nonresizable-size.ui \
|
||||||
simpe.ref.png \
|
simpe.ref.png \
|
||||||
simple.ui
|
simple.ui
|
||||||
|
|||||||
15
tests/reftests/nonresizable-size.ref.ui
Normal file
15
tests/reftests/nonresizable-size.ref.ui
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
<?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="GtkLabel" id="label1">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="label" translatable="yes">Hello World</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</interface>
|
||||||
17
tests/reftests/nonresizable-size.ui
Normal file
17
tests/reftests/nonresizable-size.ui
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<?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="resizable">False</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel" id="label1">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="label" translatable="yes">Hello World</property>
|
||||||
|
<property name="ellipsize">end</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</interface>
|
||||||
Reference in New Issue
Block a user