mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 21:51:08 +00:00
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:
parent
e1cd996617
commit
49f8b571b9
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user