From 5e3c2524f80edf0a3647a79edb355e636dab7e9a Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 9 Feb 2012 13:45:31 +0100 Subject: [PATCH] reftests: Add a test for misrendering of transparent windows If a widget with a GDK window is set to be transparent in the CSS, it gets drawn as black instead. This test checks that the fix works. --- tests/reftests/Makefile.am | 3 +++ tests/reftests/background-window-transparent.css | 5 +++++ .../reftests/background-window-transparent.ref.ui | 15 +++++++++++++++ tests/reftests/background-window-transparent.ui | 14 ++++++++++++++ 4 files changed, 37 insertions(+) create mode 100644 tests/reftests/background-window-transparent.css create mode 100644 tests/reftests/background-window-transparent.ref.ui create mode 100644 tests/reftests/background-window-transparent.ui diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am index 66bdc3baf2..c592ed483a 100644 --- a/tests/reftests/Makefile.am +++ b/tests/reftests/Makefile.am @@ -43,6 +43,9 @@ EXTRA_DIST += \ background-size-keywords.css \ background-size-keywords.ref.ui \ background-size-keywords.ui \ + background-window-transparent.css \ + background-window-transparent.ref.ui \ + background-window-transparent.ui \ reference-background-origin.png \ border-color-default.css \ border-color-default.ref.ui \ diff --git a/tests/reftests/background-window-transparent.css b/tests/reftests/background-window-transparent.css new file mode 100644 index 0000000000..d6054bad56 --- /dev/null +++ b/tests/reftests/background-window-transparent.css @@ -0,0 +1,5 @@ +@import "reset-to-defaults.css"; + +GtkWindow { background-color: green; } + +#reference * { background-color: green; } diff --git a/tests/reftests/background-window-transparent.ref.ui b/tests/reftests/background-window-transparent.ref.ui new file mode 100644 index 0000000000..368cd75cb5 --- /dev/null +++ b/tests/reftests/background-window-transparent.ref.ui @@ -0,0 +1,15 @@ + + + + + False + popup + reference + + + True + True + + + + diff --git a/tests/reftests/background-window-transparent.ui b/tests/reftests/background-window-transparent.ui new file mode 100644 index 0000000000..be902b7bdb --- /dev/null +++ b/tests/reftests/background-window-transparent.ui @@ -0,0 +1,14 @@ + + + + + False + popup + + + True + True + + + +