diff options
author | Benjamin Otte <otte@redhat.com> | 2021-11-30 14:05:22 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2021-11-30 15:10:02 +0100 |
commit | 07cfdd8ca0dbaf0634c845aa206136708f967b46 (patch) | |
tree | 736a17bcdbc680526734a1934a66cb5ee6612780 /testsuite/reftests | |
parent | ade7509b974f28871e2a52e9e3da0edff4a0957b (diff) | |
download | gtk+-07cfdd8ca0dbaf0634c845aa206136708f967b46.tar.gz |
label: Don't set ellipsized size as natural size
Natural size should never ellipsize.
Tests added.
Diffstat (limited to 'testsuite/reftests')
-rw-r--r-- | testsuite/reftests/hbox-with-ellipsizing-label.ref.ui | 15 | ||||
-rw-r--r-- | testsuite/reftests/hbox-with-ellipsizing-label.ui | 16 | ||||
-rw-r--r-- | testsuite/reftests/hbox-with-ellipsizing-wrapping-label.ref.ui | 17 | ||||
-rw-r--r-- | testsuite/reftests/hbox-with-ellipsizing-wrapping-label.ui | 18 | ||||
-rw-r--r-- | testsuite/reftests/label-sizing.ref.ui | 1 | ||||
-rw-r--r-- | testsuite/reftests/label-sizing.ui | 1 | ||||
-rw-r--r-- | testsuite/reftests/meson.build | 4 |
7 files changed, 70 insertions, 2 deletions
diff --git a/testsuite/reftests/hbox-with-ellipsizing-label.ref.ui b/testsuite/reftests/hbox-with-ellipsizing-label.ref.ui new file mode 100644 index 0000000000..1e6871cb40 --- /dev/null +++ b/testsuite/reftests/hbox-with-ellipsizing-label.ref.ui @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <object class="GtkWindow"> + <property name="decorated">0</property> + <child> + <object class="GtkBox"> + <child> + <object class="GtkLabel"> + <property name="label">Hello World</property> + </object> + </child> + </object> + </child> + </object> +</interface> diff --git a/testsuite/reftests/hbox-with-ellipsizing-label.ui b/testsuite/reftests/hbox-with-ellipsizing-label.ui new file mode 100644 index 0000000000..ff36ee32b3 --- /dev/null +++ b/testsuite/reftests/hbox-with-ellipsizing-label.ui @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <object class="GtkWindow"> + <property name="decorated">0</property> + <child> + <object class="GtkBox"> + <child> + <object class="GtkLabel"> + <property name="label">Hello World</property> + <property name="ellipsize">end</property> + </object> + </child> + </object> + </child> + </object> +</interface> diff --git a/testsuite/reftests/hbox-with-ellipsizing-wrapping-label.ref.ui b/testsuite/reftests/hbox-with-ellipsizing-wrapping-label.ref.ui new file mode 100644 index 0000000000..f0151d113f --- /dev/null +++ b/testsuite/reftests/hbox-with-ellipsizing-wrapping-label.ref.ui @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <object class="GtkWindow"> + <property name="decorated">0</property> + <child> + <object class="GtkBox"> + <child> + <object class="GtkLabel"> + <property name="label">Hello World</property> + <property name="wrap">True</property> + <property name="wrap-mode">char</property> + </object> + </child> + </object> + </child> + </object> +</interface> diff --git a/testsuite/reftests/hbox-with-ellipsizing-wrapping-label.ui b/testsuite/reftests/hbox-with-ellipsizing-wrapping-label.ui new file mode 100644 index 0000000000..8649153e94 --- /dev/null +++ b/testsuite/reftests/hbox-with-ellipsizing-wrapping-label.ui @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <object class="GtkWindow"> + <property name="decorated">0</property> + <child> + <object class="GtkBox"> + <child> + <object class="GtkLabel"> + <property name="label">Hello World</property> + <property name="ellipsize">end</property> + <property name="wrap">True</property> + <property name="wrap-mode">char</property> + </object> + </child> + </object> + </child> + </object> +</interface> diff --git a/testsuite/reftests/label-sizing.ref.ui b/testsuite/reftests/label-sizing.ref.ui index 4235424e80..390b1bcf84 100644 --- a/testsuite/reftests/label-sizing.ref.ui +++ b/testsuite/reftests/label-sizing.ref.ui @@ -2,7 +2,6 @@ <interface> <object class="GtkWindow" id="window1"> <property name="decorated">0</property> - <signal name="realize" handler="reftest:set_default_direction_ltr"/> <child> <object class="GtkGrid" id="grid1"> <property name="row_spacing">1</property> diff --git a/testsuite/reftests/label-sizing.ui b/testsuite/reftests/label-sizing.ui index ad3309b997..87e1c9eef4 100644 --- a/testsuite/reftests/label-sizing.ui +++ b/testsuite/reftests/label-sizing.ui @@ -2,7 +2,6 @@ <interface> <object class="GtkWindow" id="window1"> <property name="decorated">0</property> - <signal name="realize" handler="reftest:set_default_direction_ltr"/> <child> <object class="GtkGrid" id="grid1"> <property name="row-spacing">1</property> diff --git a/testsuite/reftests/meson.build b/testsuite/reftests/meson.build index 5f36c6ddb4..0239f43df3 100644 --- a/testsuite/reftests/meson.build +++ b/testsuite/reftests/meson.build @@ -310,6 +310,10 @@ testdata = [ 'gtk-icontheme-sizing.css', 'gtk-icontheme-sizing.ref.ui', 'gtk-icontheme-sizing.ui', + 'hbox-with-ellipsizing-label.ref.ui', + 'hbox-with-ellipsizing-label.ui', + 'hbox-with-ellipsizing-wrapping-label.ref.ui', + 'hbox-with-ellipsizing-wrapping-label.ui', 'icon-effect-missing.css', 'icon-effect-missing.ref.ui', 'icon-effect-missing.ui', |