tests: Add CSS integer parsing tests

This commit is contained in:
Benjamin Otte 2011-04-09 13:49:41 +02:00
parent d28816bdba
commit fbf658b04e
4 changed files with 76 additions and 0 deletions

View File

@ -34,6 +34,9 @@ EXTRA_DIST += \
does-not-exist.css \
does-not-exist.errors \
does-not-exist.ref.css \
integer.css \
integer.errors \
integer.ref.css \
no-semicolon.css \
no-semicolon.ref.css \
simple.css

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

View 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

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