[gtk+] Fix css parser integer test
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix css parser integer test
- Date: Mon, 21 Dec 2015 19:53:19 +0000 (UTC)
commit ece3d33858ddba45397526b4fecc51c08b5e36dd
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Dec 21 14:52:06 2015 -0500
Fix css parser integer test
Use margin-top instead of a made-up property.
testsuite/css/parser/integer.css | 28 ++++++++++++++--------------
testsuite/css/parser/integer.errors | 12 ++++++++----
testsuite/css/parser/integer.ref.css | 28 ++++++++++++++++++++++------
3 files changed, 44 insertions(+), 24 deletions(-)
---
diff --git a/testsuite/css/parser/integer.css b/testsuite/css/parser/integer.css
index 79f2984..4fb2319 100644
--- a/testsuite/css/parser/integer.css
+++ b/testsuite/css/parser/integer.css
@@ -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;
}
diff --git a/testsuite/css/parser/integer.errors b/testsuite/css/parser/integer.errors
index 8cd7044..2d1d7f6 100644
--- a/testsuite/css/parser/integer.errors
+++ b/testsuite/css/parser/integer.errors
@@ -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
diff --git a/testsuite/css/parser/integer.ref.css b/testsuite/css/parser/integer.ref.css
index a2018e1..7b445f9 100644
--- a/testsuite/css/parser/integer.ref.css
+++ b/testsuite/css/parser/integer.ref.css
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]