mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 18:30:08 +00:00
reftests: Test inscription multiline overflow
This commit is contained in:
parent
98e0ca7477
commit
4c1fc4f5d7
66
testsuite/reftests/inscription-overflow-multiline.ref.ui
Normal file
66
testsuite/reftests/inscription-overflow-multiline.ref.ui
Normal 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>
|
40
testsuite/reftests/inscription-overflow-multiline.ui
Normal file
40
testsuite/reftests/inscription-overflow-multiline.ui
Normal 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>
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user