mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
reftests: Add test for the recent label changes
This commit is contained in:
parent
3e82d12abd
commit
e1112dce6d
@ -244,6 +244,9 @@ testdata = \
|
||||
label-attribute-preference.css \
|
||||
label-attribute-preference.ref.ui \
|
||||
label-attribute-preference.ui \
|
||||
label-clipping.css \
|
||||
label-clipping.ref.ui \
|
||||
label-clipping.ui \
|
||||
label-ellipsize-small.ref.ui \
|
||||
label-ellipsize-small.ui \
|
||||
label-ellipsize-with-big.ref.ui \
|
||||
|
6
testsuite/reftests/label-clipping.css
Normal file
6
testsuite/reftests/label-clipping.css
Normal file
@ -0,0 +1,6 @@
|
||||
@import "reset-to-defaults.css";
|
||||
|
||||
GtkLabel {
|
||||
font-size: 40px;
|
||||
font-style: italic;
|
||||
}
|
17
testsuite/reftests/label-clipping.ref.ui
Normal file
17
testsuite/reftests/label-clipping.ref.ui
Normal file
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Generated with glade 3.18.1 -->
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.12"/>
|
||||
<object class="GtkWindow" id="window1">
|
||||
<property name="width_request">500</property>
|
||||
<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">fffffffff</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
31
testsuite/reftests/label-clipping.ui
Normal file
31
testsuite/reftests/label-clipping.ui
Normal file
@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Generated with glade 3.18.1 -->
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.12"/>
|
||||
<object class="GtkWindow" id="window1">
|
||||
<property name="width_request">500</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="type">popup</property>
|
||||
<child>
|
||||
<object class="GtkBox" id="box2">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="halign">center</property>
|
||||
<property name="valign">center</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="label1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="label" translatable="yes">fffffffff</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">0</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
Loading…
Reference in New Issue
Block a user