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

View File

@ -1,12 +1,6 @@
integer.css:5: error: GTK_CSS_PARSER_ERROR_SYNTAX integer.css:20:12-15: error: GTK_CSS_PARSER_ERROR_SYNTAX
integer.css:8: error: GTK_CSS_PARSER_ERROR_SYNTAX integer.css:23:12-16: error: GTK_CSS_PARSER_ERROR_SYNTAX
integer.css:11: error: GTK_CSS_PARSER_ERROR_SYNTAX integer.css:29:12-20: error: GTK_CSS_PARSER_ERROR_SYNTAX
integer.css:14: error: GTK_CSS_PARSER_ERROR_SYNTAX integer.css:32:12-16: error: GTK_CSS_PARSER_ERROR_SYNTAX
integer.css:17: error: GTK_CSS_PARSER_ERROR_SYNTAX integer.css:38:12-15: error: GTK_CSS_PARSER_ERROR_SYNTAX
integer.css:23: error: GTK_CSS_PARSER_ERROR_SYNTAX integer.css:41:12-13: 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

View File

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