testsuite: Update integer test

Make the test use an actual integer property that accepts negative
numbers (opacity) instead of one that wants units (margin-top) or
can't deal with negative numbers (everything else).
This commit is contained in:
Benjamin Otte 2019-04-11 20:45:17 +02:00
parent e1cd996617
commit 49f8b571b9
3 changed files with 28 additions and 28 deletions

View File

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

View File

@ -1,12 +1,6 @@
integer.css:5: error: GTK_CSS_PARSER_ERROR_SYNTAX
integer.css:8: error: GTK_CSS_PARSER_ERROR_SYNTAX
integer.css:11: error: GTK_CSS_PARSER_ERROR_SYNTAX
integer.css:14: error: GTK_CSS_PARSER_ERROR_SYNTAX
integer.css:17: error: GTK_CSS_PARSER_ERROR_SYNTAX
integer.css:23: error: GTK_CSS_PARSER_ERROR_SYNTAX
integer.css:26: error: GTK_CSS_PARSER_ERROR_SYNTAX
integer.css:29: error: GTK_CSS_PARSER_ERROR_SYNTAX
integer.css:32: error: GTK_CSS_PARSER_ERROR_SYNTAX
integer.css:35: error: GTK_CSS_PARSER_ERROR_SYNTAX
integer.css:38: error: GTK_CSS_PARSER_ERROR_SYNTAX
integer.css:41: error: GTK_CSS_PARSER_ERROR_SYNTAX
integer.css:20:12-15: error: GTK_CSS_PARSER_ERROR_SYNTAX
integer.css:23:12-16: error: GTK_CSS_PARSER_ERROR_SYNTAX
integer.css:29:12-20: error: GTK_CSS_PARSER_ERROR_SYNTAX
integer.css:32:12-16: error: GTK_CSS_PARSER_ERROR_SYNTAX
integer.css:38:12-15: error: GTK_CSS_PARSER_ERROR_SYNTAX
integer.css:41:12-13: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -1,30 +1,35 @@
a {
margin-top: 0;
opacity: 0;
}
b {
opacity: 1;
}
c {
opacity: -1;
}
d {
opacity: 2147483647;
}
e {
opacity: -2147483648;
}
f {
opacity: 1;
}
g {
margin-top: 3px;
}
h {
}
i {
opacity: 377;
}
j {
@ -34,6 +39,7 @@ k {
}
l {
opacity: 3;
}
m {