From 4809efd6300d9e447758d6ab929863e40e451933 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 11 Jun 2022 22:15:43 +0200 Subject: reftests: Test overflowing inscription yalign Overflowing inscriptions should always align to the top, even when half an extra line is available. --- .../reftests/inscription-overflow-yalign.ref.ui | 49 ++++++++++++++++++++++ testsuite/reftests/inscription-overflow-yalign.ui | 45 ++++++++++++++++++++ testsuite/reftests/meson.build | 2 + 3 files changed, 96 insertions(+) create mode 100644 testsuite/reftests/inscription-overflow-yalign.ref.ui create mode 100644 testsuite/reftests/inscription-overflow-yalign.ui (limited to 'testsuite') diff --git a/testsuite/reftests/inscription-overflow-yalign.ref.ui b/testsuite/reftests/inscription-overflow-yalign.ref.ui new file mode 100644 index 0000000000..448a949f37 --- /dev/null +++ b/testsuite/reftests/inscription-overflow-yalign.ref.ui @@ -0,0 +1,49 @@ + + + + 200 + + + vertical + 1 + + + THIS +HIGH + + + + + + + + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. + clip + 0.0 + + + + + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. + ellipsize-start + 0.0 + + + + + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. + ellipsize-middle + 0.0 + + + + + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. + ellipsize-end + 0.0 + + + + + + diff --git a/testsuite/reftests/inscription-overflow-yalign.ui b/testsuite/reftests/inscription-overflow-yalign.ui new file mode 100644 index 0000000000..ee0e92ee9e --- /dev/null +++ b/testsuite/reftests/inscription-overflow-yalign.ui @@ -0,0 +1,45 @@ + + + + 200 + + + vertical + 1 + + + THIS +HIGH + + + + + + + + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. + clip + + + + + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. + ellipsize-start + + + + + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. + ellipsize-middle + + + + + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. + ellipsize-end + + + + + + diff --git a/testsuite/reftests/meson.build b/testsuite/reftests/meson.build index 7c03cb7062..c59c337297 100644 --- a/testsuite/reftests/meson.build +++ b/testsuite/reftests/meson.build @@ -371,6 +371,8 @@ testdata = [ 'inscription-markup.ui', 'inscription-overflow.ref.ui', 'inscription-overflow.ui', + 'inscription-overflow-yalign.ref.ui', + 'inscription-overflow-yalign.ui', 'label-attribute-preference.css', 'label-attribute-preference.ref.ui', 'label-attribute-preference.ui', -- cgit v1.2.1 From 4c1fc4f5d7dc920cc1c42c71db84ba8b8da4bad1 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 12 Jun 2022 02:42:00 +0200 Subject: reftests: Test inscription multiline overflow --- .../reftests/inscription-overflow-multiline.ref.ui | 66 ++++++++++++++++++++++ .../reftests/inscription-overflow-multiline.ui | 40 +++++++++++++ testsuite/reftests/meson.build | 2 + 3 files changed, 108 insertions(+) create mode 100644 testsuite/reftests/inscription-overflow-multiline.ref.ui create mode 100644 testsuite/reftests/inscription-overflow-multiline.ui (limited to 'testsuite') diff --git a/testsuite/reftests/inscription-overflow-multiline.ref.ui b/testsuite/reftests/inscription-overflow-multiline.ref.ui new file mode 100644 index 0000000000..3995238810 --- /dev/null +++ b/testsuite/reftests/inscription-overflow-multiline.ref.ui @@ -0,0 +1,66 @@ + + + + 200 + + + vertical + + + + + + + + + + + We wrap supercalifragilisticexpialidocious into 3 lines + 1 + word-char + 0 + 0 + + 1 + + + + + + + + We wrap supercalifragilisticexpialidocious into 3 lines + 1 + word-char + 0 + 0 + 2 + start + + + + + We wrap supercalifragilisticexpialidocious into 3 lines + 1 + word-char + 0 + 0 + 2 + middle + + + + + We wrap supercalifragilisticexpialidocious into 3 lines + 1 + word-char + 0 + 0 + 2 + end + + + + + + diff --git a/testsuite/reftests/inscription-overflow-multiline.ui b/testsuite/reftests/inscription-overflow-multiline.ui new file mode 100644 index 0000000000..3abca36da4 --- /dev/null +++ b/testsuite/reftests/inscription-overflow-multiline.ui @@ -0,0 +1,40 @@ + + + + 200 + + + vertical + + + We wrap supercalifragilisticexpialidocious into 3 lines + clip + 0 + 2 + + + + + We wrap supercalifragilisticexpialidocious into 3 lines + ellipsize-start + 2 + + + + + We wrap supercalifragilisticexpialidocious into 3 lines + ellipsize-middle + 2 + + + + + We wrap supercalifragilisticexpialidocious into 3 lines + ellipsize-end + 2 + + + + + + diff --git a/testsuite/reftests/meson.build b/testsuite/reftests/meson.build index c59c337297..eecb7f91ad 100644 --- a/testsuite/reftests/meson.build +++ b/testsuite/reftests/meson.build @@ -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', -- cgit v1.2.1