[gtk+/wip/otte/tokenizer: 60/78] css: Functions don't accept spaces before ( anymore
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/otte/tokenizer: 60/78] css: Functions don't accept spaces before ( anymore
- Date: Fri, 25 Nov 2016 22:36:45 +0000 (UTC)
commit 01b320f563cd00ec6498d51383951f947dab4576
Author: Benjamin Otte <otte redhat com>
Date: Sat Mar 26 23:05:04 2016 +0100
css: Functions don't accept spaces before ( anymore
So fix the testcaes that use them.
And in particular, fix -gtk-gradient() using spaces everywhere.
gtk/deprecated/gtkgradient.c | 2 +-
testsuite/css/parser/at-valid-11.css | 2 +-
testsuite/css/parser/at-valid-16.css | 2 +-
testsuite/css/parser/background-image.ref.css | 6 +++---
testsuite/css/parser/declarations-valid-09.css | 2 +-
testsuite/css/parser/declarations-valid-19.css | 2 +-
testsuite/css/parser/declarations-valid-19.ref.css | 2 +-
testsuite/css/parser/declarations-valid-20.css | 2 +-
testsuite/css/parser/declarations-valid-20.ref.css | 2 +-
testsuite/css/parser/declarations-valid-21.css | 10 +++++-----
testsuite/css/parser/declarations-valid-21.ref.css | 2 +-
11 files changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/gtk/deprecated/gtkgradient.c b/gtk/deprecated/gtkgradient.c
index a1a3a6c..e466b76 100644
--- a/gtk/deprecated/gtkgradient.c
+++ b/gtk/deprecated/gtkgradient.c
@@ -397,7 +397,7 @@ gtk_gradient_to_string (GtkGradient *gradient)
g_return_val_if_fail (gradient != NULL, NULL);
- str = g_string_new ("-gtk-gradient (");
+ str = g_string_new ("-gtk-gradient(");
if (gradient->radius0 == 0 && gradient->radius1 == 0)
{
diff --git a/testsuite/css/parser/at-valid-11.css b/testsuite/css/parser/at-valid-11.css
index db96269..5d6883f 100644
--- a/testsuite/css/parser/at-valid-11.css
+++ b/testsuite/css/parser/at-valid-11.css
@@ -1 +1 @@
-@define-color color darker ( @blue ) ;
+@define-color color darker( @blue ) ;
diff --git a/testsuite/css/parser/at-valid-16.css b/testsuite/css/parser/at-valid-16.css
index cc36511..8004be0 100644
--- a/testsuite/css/parser/at-valid-16.css
+++ b/testsuite/css/parser/at-valid-16.css
@@ -1 +1 @@
-@define-color color mix(shade (#121212, 0.5), mix (rgb(10%,20%,100%), @blue,0.5), 0.2);
+@define-color color mix(shade(#121212, 0.5), mix(rgb(10%,20%,100%), @blue,0.5), 0.2);
diff --git a/testsuite/css/parser/background-image.ref.css b/testsuite/css/parser/background-image.ref.css
index 9be98ec..96eca59 100644
--- a/testsuite/css/parser/background-image.ref.css
+++ b/testsuite/css/parser/background-image.ref.css
@@ -75,13 +75,13 @@ s {
}
t {
- background-image: -gtk-gradient (linear, left top, left bottom, from (rgb(255,0,0)), to (rgb(0,128,0)));
+ background-image: -gtk-gradient(linear, left top, left bottom, from (rgb(255,0,0)), to (rgb(0,128,0)));
}
u {
- background-image: -gtk-gradient (linear, center center, 0.20000000000000001 bottom, from (rgb(0,0,0)),
color-stop (0.5, rgb(128,128,128)), to (rgb(255,255,255)));
+ background-image: -gtk-gradient(linear, center center, 0.20000000000000001 bottom, from (rgb(0,0,0)),
color-stop (0.5, rgb(128,128,128)), to (rgb(255,255,255)));
}
v {
- background-image: -gtk-gradient (radial, left top, 0.10000000000000001, left bottom, 0.29999999999999999,
from (rgb(0,0,0)), to (rgb(0,0,255)));
+ background-image: -gtk-gradient(radial, left top, 0.10000000000000001, left bottom, 0.29999999999999999,
from (rgb(0,0,0)), to (rgb(0,0,255)));
}
diff --git a/testsuite/css/parser/declarations-valid-09.css b/testsuite/css/parser/declarations-valid-09.css
index 88530f0..7deb12d 100644
--- a/testsuite/css/parser/declarations-valid-09.css
+++ b/testsuite/css/parser/declarations-valid-09.css
@@ -1 +1 @@
-* { color: red; background-color: shade (@bg_color, 0.5) }
+* { color: red; background-color: shade(@bg_color, 0.5) }
diff --git a/testsuite/css/parser/declarations-valid-19.css b/testsuite/css/parser/declarations-valid-19.css
index 423f672..8174254 100644
--- a/testsuite/css/parser/declarations-valid-19.css
+++ b/testsuite/css/parser/declarations-valid-19.css
@@ -1,3 +1,3 @@
-* { background-image: -gtk-gradient (linear,
+* { background-image: -gtk-gradient(linear,
left top, right top,
from (#fff), to (#000)) }
diff --git a/testsuite/css/parser/declarations-valid-19.ref.css
b/testsuite/css/parser/declarations-valid-19.ref.css
index a95b753..72b3d24 100644
--- a/testsuite/css/parser/declarations-valid-19.ref.css
+++ b/testsuite/css/parser/declarations-valid-19.ref.css
@@ -1,3 +1,3 @@
* {
- background-image: -gtk-gradient (linear, left top, right top, from (rgb(255,255,255)), to (rgb(0,0,0)));
+ background-image: -gtk-gradient(linear, left top, right top, from (rgb(255,255,255)), to (rgb(0,0,0)));
}
diff --git a/testsuite/css/parser/declarations-valid-20.css b/testsuite/css/parser/declarations-valid-20.css
index 1095225..0a4f02c 100644
--- a/testsuite/css/parser/declarations-valid-20.css
+++ b/testsuite/css/parser/declarations-valid-20.css
@@ -1,4 +1,4 @@
-* { background-image: -gtk-gradient (linear,
+* { background-image: -gtk-gradient(linear,
0.0 0.5, 0.5 1.0,
from (#fff),
color-stop (0.5, #f00),
diff --git a/testsuite/css/parser/declarations-valid-20.ref.css
b/testsuite/css/parser/declarations-valid-20.ref.css
index d9d6c17..1378643 100644
--- a/testsuite/css/parser/declarations-valid-20.ref.css
+++ b/testsuite/css/parser/declarations-valid-20.ref.css
@@ -1,3 +1,3 @@
* {
- background-image: -gtk-gradient (linear, left center, center bottom, from (rgb(255,255,255)), color-stop
(0.5, rgb(255,0,0)), to (rgb(0,0,0)));
+ background-image: -gtk-gradient(linear, left center, center bottom, from (rgb(255,255,255)), color-stop
(0.5, rgb(255,0,0)), to (rgb(0,0,0)));
}
diff --git a/testsuite/css/parser/declarations-valid-21.css b/testsuite/css/parser/declarations-valid-21.css
index 8986615..6271072 100644
--- a/testsuite/css/parser/declarations-valid-21.css
+++ b/testsuite/css/parser/declarations-valid-21.css
@@ -1,6 +1,6 @@
-* { background-image: -gtk-gradient (radial,
- center center, 0.25,
- center center, 0.75,
- color-stop (0.0,#fff),
- color-stop (1.0,#000))}
+* { background-image: -gtk-gradient(radial,
+ center center, 0.25,
+ center center, 0.75,
+ color-stop (0.0,#fff),
+ color-stop (1.0,#000))}
diff --git a/testsuite/css/parser/declarations-valid-21.ref.css
b/testsuite/css/parser/declarations-valid-21.ref.css
index 4495fa6..2875b1f 100644
--- a/testsuite/css/parser/declarations-valid-21.ref.css
+++ b/testsuite/css/parser/declarations-valid-21.ref.css
@@ -1,3 +1,3 @@
* {
- background-image: -gtk-gradient (radial, center center, 0.25, center center, 0.75, from
(rgb(255,255,255)), to (rgb(0,0,0)));
+ background-image: -gtk-gradient(radial, center center, 0.25, center center, 0.75, from (rgb(255,255,255)),
to (rgb(0,0,0)));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]