From: Benjamin Otte Date: Sun, 22 May 2011 02:27:38 +0000 (+0200) Subject: reftests: Add label-shadows test X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;h=ef51b5be768fa7817511ded376d16fbb244ffed0;p=~andy%2Fgtk reftests: Add label-shadows test Tests shadows work properly for rotated labels --- diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am index bf329e55e..106cbed99 100644 --- a/tests/reftests/Makefile.am +++ b/tests/reftests/Makefile.am @@ -69,6 +69,9 @@ EXTRA_DIST += \ grid-homogeneous.css \ grid-homogeneous.ref.ui \ grid-homogeneous.ui \ + label-shadows.css \ + label-shadows.ref.ui \ + label-shadows.ui \ label-sizing.css \ label-sizing.ref.ui \ label-sizing.ui \ diff --git a/tests/reftests/label-shadows.css b/tests/reftests/label-shadows.css new file mode 100644 index 000000000..28e8840cc --- /dev/null +++ b/tests/reftests/label-shadows.css @@ -0,0 +1,8 @@ +GtkLabel { + engine: none; + text-shadow: 1 1 red; +} + +.no-shadow { + text-shadow: none +} diff --git a/tests/reftests/label-shadows.ref.ui b/tests/reftests/label-shadows.ref.ui new file mode 100644 index 000000000..a67e551a7 --- /dev/null +++ b/tests/reftests/label-shadows.ref.ui @@ -0,0 +1,184 @@ + + + + + False + popup + + + True + False + + + True + False + + + True + False + ABC + + + + + + + 2 + 2 + + + + + True + False + 1 + 1 + ABC + + + + + + 0 + 0 + 1 + 1 + + + + + True + False + + + True + False + ABC + 90 + + + + + + + 2 + 0 + + + + + True + False + 1 + 1 + ABC + 90 + + + + + + 1 + 0 + 1 + 1 + + + + + True + False + + + True + False + ABC + 180 + + + + + + + 0 + 0 + + + + + True + False + 1 + 1 + ABC + 180 + + + + + + 1 + 1 + 1 + 1 + + + + + True + False + + + True + False + ABC + 270 + + + + + + + 0 + 2 + + + + + True + False + 1 + 1 + ABC + 270 + + + + + + 0 + 1 + 1 + 1 + + + + + + diff --git a/tests/reftests/label-shadows.ui b/tests/reftests/label-shadows.ui new file mode 100644 index 000000000..1472c509a --- /dev/null +++ b/tests/reftests/label-shadows.ui @@ -0,0 +1,100 @@ + + + + + False + popup + + + True + False + + + True + False + start + start + 1 + 1 + ABC + + + 0 + 0 + 1 + 1 + + + + + True + False + start + start + 1 + 1 + ABC + 90 + + + 1 + 0 + 1 + 1 + + + + + True + False + start + start + 1 + 1 + ABC + 180 + + + 1 + 1 + 1 + 1 + + + + + True + False + start + start + 1 + 1 + ABC + 270 + + + 0 + 1 + 1 + 1 + + + + + + + + + + + + + + + + + + + + +