reftests: Add inscription reftest for xalign

Compare with labels again.
This commit is contained in:
Benjamin Otte 2022-06-13 01:26:20 +02:00
parent c93a01d627
commit 4927b6e625
3 changed files with 83 additions and 0 deletions

View 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>

View 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>

View File

@ -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',