Fix css parser integer test

Use margin-top instead of a made-up property.
This commit is contained in:
Matthias Clasen 2015-12-21 14:52:06 -05:00
parent ce859a7c65
commit ece3d33858
3 changed files with 44 additions and 24 deletions

View File

@ -1,42 +1,42 @@
a {
int-property: 0;
margin-top: 0;
}
b {
int-property: 1;
margin-top: 1;
}
c {
int-property: -1;
margin-top: -1;
}
d {
int-property: 2147483647;
margin-top: 2147483647;
}
e {
int-property: -2147483648;
margin-top: -2147483648;
}
f {
int-property: 1.0;
margin-top: 1.0;
}
g {
int-property: 3px;
margin-top: 3px;
}
h {
int-property: 0xFF;
margin-top: 0xFF;
}
i {
int-property: 0377;
margin-top: 0377;
}
j {
int-property: nonumber;
margin-top: nonumber;
}
k {
int-property: "42";
margin-top: "42";
}
l {
int-property: +3;
margin-top: +3;
}
m {
int-property: --5;
margin-top: --5;
}
n {
int-property: - 10;
margin-top: - 10;
}

View File

@ -1,8 +1,12 @@
integer.css:17: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
integer.css:20: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
integer.css:23: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
integer.css:5: error: GTK_CSS_PROVIDER_ERROR_DEPRECATED
integer.css:8: error: GTK_CSS_PROVIDER_ERROR_DEPRECATED
integer.css:11: error: GTK_CSS_PROVIDER_ERROR_DEPRECATED
integer.css:14: error: GTK_CSS_PROVIDER_ERROR_DEPRECATED
integer.css:17: error: GTK_CSS_PROVIDER_ERROR_DEPRECATED
integer.css:23: error: GTK_CSS_PROVIDER_ERROR_DEPRECATED
integer.css:26: error: GTK_CSS_PROVIDER_ERROR_DEPRECATED
integer.css:29: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
integer.css:32: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
integer.css:35: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
integer.css:35: error: GTK_CSS_PROVIDER_ERROR_DEPRECATED
integer.css:38: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
integer.css:41: error: GTK_CSS_PROVIDER_ERROR_SYNTAX

View File

@ -1,23 +1,39 @@
a {
int-property: 0;
margin-top: 0;
}
b {
int-property: 1;
margin-top: 1px;
}
c {
int-property: -1;
margin-top: -1px;
}
d {
int-property: 2147483647;
margin-top: 2147483647px;
}
e {
int-property: -2147483648;
margin-top: -2147483648px;
}
f {
margin-top: 1px;
}
g {
margin-top: 3px;
}
h {
margin-top: 255px;
}
i {
int-property: 377;
margin-top: 377px;
}
l {
margin-top: 3px;
}