summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2014-11-25 19:33:18 +0100
committerBenjamin Otte <otte@redhat.com>2014-11-25 19:33:18 +0100
commit06952d807a0980c6d4de0275fc53c7236db8cb20 (patch)
treed04981a3e47286ac47b1b0cf4fab707469f708e8 /testsuite
parent965da578c47f5acc3ff16b553b4deec1c1b3738f (diff)
downloadgtk+-06952d807a0980c6d4de0275fc53c7236db8cb20.tar.gz
testsuite: Add a bunch of parsing tests for :not()
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/css/parser/Makefile.am2
-rw-r--r--testsuite/css/parser/not.css80
-rw-r--r--testsuite/css/parser/not.ref.css80
3 files changed, 162 insertions, 0 deletions
diff --git a/testsuite/css/parser/Makefile.am b/testsuite/css/parser/Makefile.am
index 4c35afeecf..d148cedc13 100644
--- a/testsuite/css/parser/Makefile.am
+++ b/testsuite/css/parser/Makefile.am
@@ -326,6 +326,8 @@ test_data = \
linear-gradient.ref.css \
no-semicolon.css \
no-semicolon.ref.css \
+ not.css \
+ not.ref.css \
nth-child.css \
nth-child.ref.css \
property-name-errors.css \
diff --git a/testsuite/css/parser/not.css b/testsuite/css/parser/not.css
new file mode 100644
index 0000000000..59da972028
--- /dev/null
+++ b/testsuite/css/parser/not.css
@@ -0,0 +1,80 @@
+:not(*) {
+ color: tomato;
+}
+
+:not(GtkButton) {
+ color: tomato;
+}
+
+:not(:hover) {
+ color: tomato;
+}
+
+:not(.yourmom) {
+ color: tomato;
+}
+
+:not(#yourmom) {
+ color: tomato;
+}
+
+:not( *) {
+ color: tomato;
+}
+
+:not( GtkButton) {
+ color: tomato;
+}
+
+:not( :hover) {
+ color: tomato;
+}
+
+:not( .yourmom) {
+ color: tomato;
+}
+
+:not( #yourmom) {
+ color: tomato;
+}
+
+:not(* ) {
+ color: tomato;
+}
+
+:not(GtkButton ) {
+ color: tomato;
+}
+
+:not(:hover ) {
+ color: tomato;
+}
+
+:not(.yourmom ) {
+ color: tomato;
+}
+
+:not(#yourmom ) {
+ color: tomato;
+}
+
+:not( * ) {
+ color: tomato;
+}
+
+:not( GtkButton ) {
+ color: tomato;
+}
+
+:not( :hover ) {
+ color: tomato;
+}
+
+:not( .yourmom ) {
+ color: tomato;
+}
+
+:not( #yourmom ) {
+ color: tomato;
+}
+
diff --git a/testsuite/css/parser/not.ref.css b/testsuite/css/parser/not.ref.css
new file mode 100644
index 0000000000..7cb0fb3e9c
--- /dev/null
+++ b/testsuite/css/parser/not.ref.css
@@ -0,0 +1,80 @@
+:not(*) {
+ color: rgb(255,99,71);
+}
+
+:not(GtkButton) {
+ color: rgb(255,99,71);
+}
+
+:not(:hover) {
+ color: rgb(255,99,71);
+}
+
+:not(.yourmom) {
+ color: rgb(255,99,71);
+}
+
+:not(#yourmom) {
+ color: rgb(255,99,71);
+}
+
+:not(*) {
+ color: rgb(255,99,71);
+}
+
+:not(GtkButton) {
+ color: rgb(255,99,71);
+}
+
+:not(:hover) {
+ color: rgb(255,99,71);
+}
+
+:not(.yourmom) {
+ color: rgb(255,99,71);
+}
+
+:not(#yourmom) {
+ color: rgb(255,99,71);
+}
+
+:not(*) {
+ color: rgb(255,99,71);
+}
+
+:not(GtkButton) {
+ color: rgb(255,99,71);
+}
+
+:not(:hover) {
+ color: rgb(255,99,71);
+}
+
+:not(.yourmom) {
+ color: rgb(255,99,71);
+}
+
+:not(#yourmom) {
+ color: rgb(255,99,71);
+}
+
+:not(*) {
+ color: rgb(255,99,71);
+}
+
+:not(GtkButton) {
+ color: rgb(255,99,71);
+}
+
+:not(:hover) {
+ color: rgb(255,99,71);
+}
+
+:not(.yourmom) {
+ color: rgb(255,99,71);
+}
+
+:not(#yourmom) {
+ color: rgb(255,99,71);
+}
+