From 821f9b478f0208b78e2971fa167f676f0d24d79f Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 28 Dec 2011 23:16:51 +0100 Subject: [PATCH] reftests: Add test for pseudo-class matching Previous GTK matched pseudoclasses not based on CSS rules, but based on their value in the enumeration. This is now fixed. --- tests/reftests/Makefile.am | 3 +++ tests/reftests/css-multi-state.css | 9 +++++++++ tests/reftests/css-multi-state.ref.ui | 27 +++++++++++++++++++++++++++ tests/reftests/css-multi-state.ui | 26 ++++++++++++++++++++++++++ 4 files changed, 65 insertions(+) create mode 100644 tests/reftests/css-multi-state.css create mode 100644 tests/reftests/css-multi-state.ref.ui create mode 100644 tests/reftests/css-multi-state.ui diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am index 9f5efc61dd..1175e24325 100644 --- a/tests/reftests/Makefile.am +++ b/tests/reftests/Makefile.am @@ -103,6 +103,9 @@ EXTRA_DIST += \ css-match-type.css \ css-match-type.ref.ui \ css-match-type.ui \ + css-multi-state.css \ + css-multi-state.ref.ui \ + css-multi-state.ui \ entry-progress-coloring.css \ entry-progress-coloring.ref.ui \ entry-progress-coloring.ui \ diff --git a/tests/reftests/css-multi-state.css b/tests/reftests/css-multi-state.css new file mode 100644 index 0000000000..b3b96fc279 --- /dev/null +++ b/tests/reftests/css-multi-state.css @@ -0,0 +1,9 @@ +GtkLabel:active, +#reference:insensitive { + color: green; +} + +GtkLabel:insensitive, +#reference:active { + color: blue; +} diff --git a/tests/reftests/css-multi-state.ref.ui b/tests/reftests/css-multi-state.ref.ui new file mode 100644 index 0000000000..f7f31a4820 --- /dev/null +++ b/tests/reftests/css-multi-state.ref.ui @@ -0,0 +1,27 @@ + + + + + False + popup + + + False + True + True + True + False + True + + + reference + True + False + False + insensitive + + + + + + diff --git a/tests/reftests/css-multi-state.ui b/tests/reftests/css-multi-state.ui new file mode 100644 index 0000000000..b97d395170 --- /dev/null +++ b/tests/reftests/css-multi-state.ui @@ -0,0 +1,26 @@ + + + + + False + popup + + + False + True + True + True + False + True + + + True + False + False + insensitive + + + + + +