tests: Add CSS integer parsing tests
This commit is contained in:
@ -34,6 +34,9 @@ EXTRA_DIST += \
|
|||||||
does-not-exist.css \
|
does-not-exist.css \
|
||||||
does-not-exist.errors \
|
does-not-exist.errors \
|
||||||
does-not-exist.ref.css \
|
does-not-exist.ref.css \
|
||||||
|
integer.css \
|
||||||
|
integer.errors \
|
||||||
|
integer.ref.css \
|
||||||
no-semicolon.css \
|
no-semicolon.css \
|
||||||
no-semicolon.ref.css \
|
no-semicolon.ref.css \
|
||||||
simple.css
|
simple.css
|
||||||
|
|||||||
42
tests/css/parser/integer.css
Normal file
42
tests/css/parser/integer.css
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
a {
|
||||||
|
int-property: 0;
|
||||||
|
}
|
||||||
|
b {
|
||||||
|
int-property: 1;
|
||||||
|
}
|
||||||
|
c {
|
||||||
|
int-property: -1;
|
||||||
|
}
|
||||||
|
d {
|
||||||
|
int-property: 2147483647;
|
||||||
|
}
|
||||||
|
e {
|
||||||
|
int-property: -2147483648;
|
||||||
|
}
|
||||||
|
f {
|
||||||
|
int-property: 1.0;
|
||||||
|
}
|
||||||
|
g {
|
||||||
|
int-property: 3px;
|
||||||
|
}
|
||||||
|
h {
|
||||||
|
int-property: 0xFF;
|
||||||
|
}
|
||||||
|
i {
|
||||||
|
int-property: 0377;
|
||||||
|
}
|
||||||
|
j {
|
||||||
|
int-property: nonumber;
|
||||||
|
}
|
||||||
|
k {
|
||||||
|
int-property: "42";
|
||||||
|
}
|
||||||
|
l {
|
||||||
|
int-property: +3;
|
||||||
|
}
|
||||||
|
m {
|
||||||
|
int-property: --5;
|
||||||
|
}
|
||||||
|
n {
|
||||||
|
int-property: - 10;
|
||||||
|
}
|
||||||
8
tests/css/parser/integer.errors
Normal file
8
tests/css/parser/integer.errors
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
integer.css:17: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
|
||||||
|
integer.css:20: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
|
||||||
|
integer.css:23: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
|
||||||
|
integer.css:29: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
|
||||||
|
integer.css:32: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
|
||||||
|
integer.css:35: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
||||||
|
integer.css:38: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
|
||||||
|
integer.css:41: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
|
||||||
23
tests/css/parser/integer.ref.css
Normal file
23
tests/css/parser/integer.ref.css
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
a {
|
||||||
|
int-property: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
b {
|
||||||
|
int-property: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
c {
|
||||||
|
int-property: -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
d {
|
||||||
|
int-property: 2147483647;
|
||||||
|
}
|
||||||
|
|
||||||
|
e {
|
||||||
|
int-property: -2147483648;
|
||||||
|
}
|
||||||
|
|
||||||
|
i {
|
||||||
|
int-property: 377;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user