mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 10:20:07 +00:00
reftests: Add inscription reftest for xalign
Compare with labels again.
This commit is contained in:
parent
c93a01d627
commit
4927b6e625
42
testsuite/reftests/inscription-xalign.ref.ui
Normal file
42
testsuite/reftests/inscription-xalign.ref.ui
Normal file
@ -0,0 +1,42 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<object class="GtkWindow">
|
||||
<property name="default-width">200</property>
|
||||
<property name="decorated">0</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="label" translatable="yes">align
|
||||
0.0</property>
|
||||
<property name="wrap-mode">word</property>
|
||||
<property name="wrap">1</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="justify">left</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="label" translatable="yes">align
|
||||
0.5</property>
|
||||
<property name="wrap-mode">word</property>
|
||||
<property name="wrap">1</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="justify">center</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="label" translatable="yes">align
|
||||
1.0</property>
|
||||
<property name="wrap-mode">word</property>
|
||||
<property name="wrap">1</property>
|
||||
<property name="xalign">1</property>
|
||||
<property name="justify">right</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
39
testsuite/reftests/inscription-xalign.ui
Normal file
39
testsuite/reftests/inscription-xalign.ui
Normal file
@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<object class="GtkWindow">
|
||||
<property name="default-width">200</property>
|
||||
<property name="decorated">0</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkInscription">
|
||||
<property name="text" translatable="yes">align
|
||||
0.0</property>
|
||||
<property name="wrap-mode">word</property>
|
||||
<property name="min-lines">2</property>
|
||||
<property name="xalign">0</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkInscription">
|
||||
<property name="text" translatable="yes">align
|
||||
0.5</property>
|
||||
<property name="wrap-mode">word</property>
|
||||
<property name="min-lines">2</property>
|
||||
<property name="xalign">0.5</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkInscription">
|
||||
<property name="text" translatable="yes">align
|
||||
1.0</property>
|
||||
<property name="wrap-mode">word</property>
|
||||
<property name="min-lines">2</property>
|
||||
<property name="xalign">1</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
@ -375,6 +375,8 @@ testdata = [
|
||||
'inscription-overflow-multiline.ui',
|
||||
'inscription-overflow-yalign.ref.ui',
|
||||
'inscription-overflow-yalign.ui',
|
||||
'inscription-xalign.ref.ui',
|
||||
'inscription-xalign.ui',
|
||||
'label-attribute-preference.css',
|
||||
'label-attribute-preference.ref.ui',
|
||||
'label-attribute-preference.ui',
|
||||
|
Loading…
Reference in New Issue
Block a user