reftests: Test inscription multiline overflow

This commit is contained in:
Benjamin Otte 2022-06-12 02:42:00 +02:00
parent 98e0ca7477
commit 4c1fc4f5d7
3 changed files with 108 additions and 0 deletions

View File

@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<object class="GtkWindow">
<property name="default-width">200</property>
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<child>
<object class="GtkOverlay">
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">
</property>
</object>
</child>
<child type="overlay">
<object class="GtkLabel">
<property name="label" translatable="yes">We wrap supercalifragilisticexpialidocious into 3 lines</property>
<property name="wrap">1</property>
<property name="wrap-mode">word-char</property>
<property name="xalign">0</property>
<property name="yalign">0</property>
<layout>
<property name="clip-overlay">1</property>
</layout>
</object>
</child>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">We wrap supercalifragilisticexpialidocious into 3 lines</property>
<property name="wrap">1</property>
<property name="wrap-mode">word-char</property>
<property name="xalign">0</property>
<property name="yalign">0</property>
<property name="lines">2</property>
<property name="ellipsize">start</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">We wrap supercalifragilisticexpialidocious into 3 lines</property>
<property name="wrap">1</property>
<property name="wrap-mode">word-char</property>
<property name="xalign">0</property>
<property name="yalign">0</property>
<property name="lines">2</property>
<property name="ellipsize">middle</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">We wrap supercalifragilisticexpialidocious into 3 lines</property>
<property name="wrap">1</property>
<property name="wrap-mode">word-char</property>
<property name="xalign">0</property>
<property name="yalign">0</property>
<property name="lines">2</property>
<property name="ellipsize">end</property>
</object>
</child>
</object>
</child>
</object>
</interface>

View File

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<object class="GtkWindow">
<property name="default-width">200</property>
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<child>
<object class="GtkInscription">
<property name="text" translatable="yes">We wrap supercalifragilisticexpialidocious into 3 lines</property>
<property name="text-overflow">clip</property>
<property name="yalign">0</property>
<property name="nat-lines">2</property>
</object>
</child>
<child>
<object class="GtkInscription">
<property name="text" translatable="yes">We wrap supercalifragilisticexpialidocious into 3 lines</property>
<property name="text-overflow">ellipsize-start</property>
<property name="nat-lines">2</property>
</object>
</child>
<child>
<object class="GtkInscription">
<property name="text" translatable="yes">We wrap supercalifragilisticexpialidocious into 3 lines</property>
<property name="text-overflow">ellipsize-middle</property>
<property name="nat-lines">2</property>
</object>
</child>
<child>
<object class="GtkInscription">
<property name="text" translatable="yes">We wrap supercalifragilisticexpialidocious into 3 lines</property>
<property name="text-overflow">ellipsize-end</property>
<property name="nat-lines">2</property>
</object>
</child>
</object>
</child>
</object>
</interface>

View File

@ -371,6 +371,8 @@ testdata = [
'inscription-markup.ui',
'inscription-overflow.ref.ui',
'inscription-overflow.ui',
'inscription-overflow-multiline.ref.ui',
'inscription-overflow-multiline.ui',
'inscription-overflow-yalign.ref.ui',
'inscription-overflow-yalign.ui',
'label-attribute-preference.css',