Commit 174cfff5 authored by Benjamin Otte's avatar Benjamin Otte

tests: Add a test to ensure we handle unknown pseudo-classes correctly

1) We want to throw an unknown value
2) We want to skip the whole rule
parent e7aa125e
......@@ -68,6 +68,9 @@ EXTRA_DIST += \
integer.ref.css \
no-semicolon.css \
no-semicolon.ref.css \
pseudo-classes-unknown.css \
pseudo-classes-unknown.errors \
pseudo-classes-unknown.ref.css \
selector.css \
selector.ref.css \
simple.css
:nobody-knows-me {
int-property: 42;
}
:nobody-knows-me(really) {
int-property: 42;
}
:a:lot:of:unkwnown:pseudo:classes(some):of(them):with:functions( spaces ) {
int-property: 42;
}
:nth-child {
int-property: 42;
}
:nth-child() {
int-property: 42;
}
x, :unknown-pseudo-classes-invalidate-selectors, y {
int-property: 42;
}
pseudo-classes-unknown.css:1: error: GTK_CSS_PROVIDER_ERROR_UNKNOWN_VALUE
pseudo-classes-unknown.css:5: error: GTK_CSS_PROVIDER_ERROR_UNKNOWN_VALUE
pseudo-classes-unknown.css:9: error: GTK_CSS_PROVIDER_ERROR_UNKNOWN_VALUE
pseudo-classes-unknown.css:13: error: GTK_CSS_PROVIDER_ERROR_UNKNOWN_VALUE
pseudo-classes-unknown.css:17: error: GTK_CSS_PROVIDER_ERROR_UNKNOWN_VALUE
pseudo-classes-unknown.css:21: error: GTK_CSS_PROVIDER_ERROR_UNKNOWN_VALUE
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment