[gtk] testsuite: Update integer test



commit 49f8b571b9a53b83f3ed1c412c16ed88639f5777
Author: Benjamin Otte <otte redhat com>
Date:   Thu Apr 11 20:45:17 2019 +0200

    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).

 testsuite/css/parser/integer.css     | 28 ++++++++++++++--------------
 testsuite/css/parser/integer.errors  | 18 ++++++------------
 testsuite/css/parser/integer.ref.css | 10 ++++++++--
 3 files changed, 28 insertions(+), 28 deletions(-)
---
diff --git a/testsuite/css/parser/integer.css b/testsuite/css/parser/integer.css
index 4fb23191f9..65013b2902 100644
--- a/testsuite/css/parser/integer.css
+++ b/testsuite/css/parser/integer.css
@@ -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;
 }
diff --git a/testsuite/css/parser/integer.errors b/testsuite/css/parser/integer.errors
index 7eaf9586e2..798726d160 100644
--- a/testsuite/css/parser/integer.errors
+++ b/testsuite/css/parser/integer.errors
@@ -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
diff --git a/testsuite/css/parser/integer.ref.css b/testsuite/css/parser/integer.ref.css
index a147d5fd53..dad66c4857 100644
--- a/testsuite/css/parser/integer.ref.css
+++ b/testsuite/css/parser/integer.ref.css
@@ -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 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]