mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
reftests: Add test for undersized children of GtkPaned
Tests the recent fixes done in206b9f940d
and6bda6f0c58
This commit is contained in:
parent
f9c60b109a
commit
d01d90fccd
@ -49,6 +49,9 @@ EXTRA_DIST += \
|
|||||||
misc-alignment.ref.ui \
|
misc-alignment.ref.ui \
|
||||||
nonresizable-size.ref.ui \
|
nonresizable-size.ref.ui \
|
||||||
nonresizable-size.ui \
|
nonresizable-size.ui \
|
||||||
|
paned-undersized.css \
|
||||||
|
paned-undersized.ref.ui \
|
||||||
|
paned-undersized.ui \
|
||||||
quit-mnemonic.ref.ui \
|
quit-mnemonic.ref.ui \
|
||||||
quit-mnemonic.ui \
|
quit-mnemonic.ui \
|
||||||
simple.ref.ui \
|
simple.ref.ui \
|
||||||
|
3
tests/reftests/paned-undersized.css
Normal file
3
tests/reftests/paned-undersized.css
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
GtkEventBox {
|
||||||
|
background-color: red;
|
||||||
|
}
|
39
tests/reftests/paned-undersized.ref.ui
Normal file
39
tests/reftests/paned-undersized.ref.ui
Normal file
@ -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>
|
51
tests/reftests/paned-undersized.ui
Normal file
51
tests/reftests/paned-undersized.ui
Normal file
@ -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>
|
Loading…
Reference in New Issue
Block a user