From 90caef4abe8f119ad80f513b4731d69ccee5902d Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 14 May 2011 13:35:19 +0200 Subject: [PATCH] reftests: Add test to check that matching by type works --- tests/reftests/Makefile.am | 4 ++++ tests/reftests/css-match-type.css | 11 +++++++++++ tests/reftests/css-match-type.ref.ui | 15 +++++++++++++++ tests/reftests/css-match-type.ui | 14 ++++++++++++++ tests/reftests/green-20x20.png | Bin 0 -> 103 bytes 5 files changed, 44 insertions(+) create mode 100644 tests/reftests/css-match-type.css create mode 100644 tests/reftests/css-match-type.ref.ui create mode 100644 tests/reftests/css-match-type.ui create mode 100644 tests/reftests/green-20x20.png diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am index 463e45d826..d3476de3a8 100644 --- a/tests/reftests/Makefile.am +++ b/tests/reftests/Makefile.am @@ -29,9 +29,13 @@ EXTRA_DIST += \ box-packing.css \ box-packing.ref.ui \ box-packing.ui \ + css-match-type.css \ + css-match-type.ref.ui \ + css-match-type.ui \ entry-progress-coloring.css \ entry-progress-coloring.ref.ui \ entry-progress-coloring.ui \ + green-20x20.png \ grid-expand.css \ grid-expand.ref.ui \ grid-expand.ui \ diff --git a/tests/reftests/css-match-type.css b/tests/reftests/css-match-type.css new file mode 100644 index 0000000000..d2abe6f3f7 --- /dev/null +++ b/tests/reftests/css-match-type.css @@ -0,0 +1,11 @@ +GtkWindow { + engine: none; + background-image: none; + background-color: green; + border-radius: 0; + border-style: none; +} + +NotGtkWindow { + background-color: red; +} diff --git a/tests/reftests/css-match-type.ref.ui b/tests/reftests/css-match-type.ref.ui new file mode 100644 index 0000000000..d8d31c3e93 --- /dev/null +++ b/tests/reftests/css-match-type.ref.ui @@ -0,0 +1,15 @@ + + + + + False + popup + + + True + False + green-20x20.png + + + + diff --git a/tests/reftests/css-match-type.ui b/tests/reftests/css-match-type.ui new file mode 100644 index 0000000000..ee6db3afc7 --- /dev/null +++ b/tests/reftests/css-match-type.ui @@ -0,0 +1,14 @@ + + + + + 20 + 20 + False + popup + window + + + diff --git a/tests/reftests/green-20x20.png b/tests/reftests/green-20x20.png new file mode 100644 index 0000000000000000000000000000000000000000..89a5d979ff3c84f558755449a7af7402a2082587 GIT binary patch literal 103 zcmeAS@N?(olHy`uVBq!ia0vp^A|TAc1SFYWcSQjywj^(N7l!{JxM1({$v_bqPZ!4! xi{9jvALkv+5|rX!uXq-CcJVBC(_m*~2F1CI>eJU><^if>@O1TaS?83{1OOD!9kBoa literal 0 HcmV?d00001