From 96d4eb5411ff972027f338ba289afbe9eb189b46 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 20 Jan 2013 20:23:05 +0100 Subject: [PATCH] reftests: Add a reftest for width-chars not shrinking the allocation width-chars and max-width chars should (and do) only change the requested sizes, not the allocated size of the label. This came out of an IRC discussion, so no bug. --- tests/reftests/Makefile.am | 2 + .../label-width-chars-dont-shrink.ref.ui | 51 ++++++++++++++++++ .../reftests/label-width-chars-dont-shrink.ui | 53 +++++++++++++++++++ 3 files changed, 106 insertions(+) create mode 100644 tests/reftests/label-width-chars-dont-shrink.ref.ui create mode 100644 tests/reftests/label-width-chars-dont-shrink.ui diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am index 6bec9a90ea..c708183f76 100644 --- a/tests/reftests/Makefile.am +++ b/tests/reftests/Makefile.am @@ -197,6 +197,8 @@ EXTRA_DIST += \ label-sizing.ui \ label-small-ellipsized.ref.ui \ label-small-ellipsized.ui \ + label-width-chars-dont-shrink.ref.ui \ + label-width-chars-dont-shrink.ui \ label-wrap-justify.ref.ui \ label-wrap-justify.ui \ linear-gradient.css \ diff --git a/tests/reftests/label-width-chars-dont-shrink.ref.ui b/tests/reftests/label-width-chars-dont-shrink.ref.ui new file mode 100644 index 0000000000..21def760a7 --- /dev/null +++ b/tests/reftests/label-width-chars-dont-shrink.ref.ui @@ -0,0 +1,51 @@ + + + + + False + popup + + + True + False + vertical + + + True + False + Hello World + + + False + True + 0 + + + + + True + False + Hello World + + + False + True + 1 + + + + + True + False + Hello World + + + False + True + 2 + + + + + + diff --git a/tests/reftests/label-width-chars-dont-shrink.ui b/tests/reftests/label-width-chars-dont-shrink.ui new file mode 100644 index 0000000000..e5ad3c4c6a --- /dev/null +++ b/tests/reftests/label-width-chars-dont-shrink.ui @@ -0,0 +1,53 @@ + + + + + False + popup + + + True + False + vertical + + + True + False + Hello World + + + False + True + 0 + + + + + True + False + Hello World + 5 + + + False + True + 1 + + + + + True + False + Hello World + 5 + + + False + True + 2 + + + + + +