testsuite: Add a bunch of parsing tests for :not()

This commit is contained in:
Benjamin Otte 2014-11-25 19:33:18 +01:00
parent 965da578c4
commit 06952d807a
3 changed files with 162 additions and 0 deletions

View File

@ -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 \

View File

@ -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;
}

View File

@ -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);
}