[gtk+/font-chooser] tests: Move stylecontext CSS tests
- From: Alberto Ruiz <aruiz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/font-chooser] tests: Move stylecontext CSS tests
- Date: Wed, 20 Jul 2011 20:21:39 +0000 (UTC)
commit 2480d30d199d1e8b03023dbe8f1ba24e0ce8e298
Author: Benjamin Otte <otte redhat com>
Date: Wed Jul 20 02:26:50 2011 +0200
tests: Move stylecontext CSS tests
Use the new CSS infrastructure for part of the old CSS tests. This way
we can probably check for warning messages such as deprecations.
gtk/tests/stylecontext.c | 94 ------------------------
tests/css/parser/Makefile.am | 124 ++++++++++++++++++++++++++++++++
tests/css/parser/at-invalid-01.css | 1 +
tests/css/parser/at-invalid-01.errors | 1 +
tests/css/parser/at-invalid-02.css | 1 +
tests/css/parser/at-invalid-02.errors | 1 +
tests/css/parser/at-invalid-03.css | 1 +
tests/css/parser/at-invalid-03.errors | 1 +
tests/css/parser/at-invalid-04.css | 1 +
tests/css/parser/at-invalid-04.errors | 1 +
tests/css/parser/at-invalid-05.css | 1 +
tests/css/parser/at-invalid-05.errors | 1 +
tests/css/parser/at-invalid-06.css | 1 +
tests/css/parser/at-invalid-06.errors | 1 +
tests/css/parser/at-invalid-07.css | 1 +
tests/css/parser/at-invalid-07.errors | 1 +
tests/css/parser/at-invalid-08.css | 1 +
tests/css/parser/at-invalid-08.errors | 1 +
tests/css/parser/at-invalid-09.css | 1 +
tests/css/parser/at-invalid-09.errors | 1 +
tests/css/parser/at-invalid-10.css | 1 +
tests/css/parser/at-invalid-10.errors | 1 +
tests/css/parser/at-invalid-11.css | 1 +
tests/css/parser/at-invalid-11.errors | 1 +
tests/css/parser/at-invalid-12.css | 1 +
tests/css/parser/at-invalid-12.errors | 1 +
tests/css/parser/at-invalid-13.css | 1 +
tests/css/parser/at-invalid-13.errors | 1 +
tests/css/parser/at-invalid-14.css | 1 +
tests/css/parser/at-invalid-14.errors | 1 +
tests/css/parser/at-invalid-15.css | 1 +
tests/css/parser/at-invalid-15.errors | 1 +
tests/css/parser/at-invalid-16.css | 1 +
tests/css/parser/at-invalid-16.errors | 1 +
tests/css/parser/at-invalid-17.css | 1 +
tests/css/parser/at-invalid-17.errors | 1 +
tests/css/parser/at-invalid-18.css | 1 +
tests/css/parser/at-invalid-18.errors | 1 +
tests/css/parser/at-invalid-19.css | 1 +
tests/css/parser/at-invalid-19.errors | 1 +
tests/css/parser/at-invalid-20.css | 1 +
tests/css/parser/at-invalid-20.errors | 1 +
tests/css/parser/at-invalid-21.css | 1 +
tests/css/parser/at-invalid-21.errors | 2 +
tests/css/parser/at-invalid-22.css | 1 +
tests/css/parser/at-invalid-22.errors | 1 +
tests/css/parser/at-invalid-23.css | 1 +
tests/css/parser/at-invalid-23.errors | 2 +
tests/css/parser/at-invalid-24.css | 1 +
tests/css/parser/at-invalid-24.errors | 2 +
tests/css/parser/at-invalid-25.css | 1 +
tests/css/parser/at-invalid-25.errors | 2 +
tests/css/parser/at-invalid-26.css | 1 +
tests/css/parser/at-invalid-26.errors | 2 +
tests/css/parser/at-invalid-27.css | 1 +
tests/css/parser/at-invalid-27.errors | 2 +
tests/css/parser/at-valid-01.css | 1 +
tests/css/parser/at-valid-01.ref.css | 3 +
tests/css/parser/at-valid-02.css | 1 +
tests/css/parser/at-valid-02.ref.css | 3 +
tests/css/parser/at-valid-03.css | 1 +
tests/css/parser/at-valid-03.ref.css | 3 +
tests/css/parser/at-valid-04.css | 1 +
tests/css/parser/at-valid-04.ref.css | 3 +
tests/css/parser/at-valid-05.css | 2 +
tests/css/parser/at-valid-05.ref.css | 3 +
tests/css/parser/at-valid-06.css | 1 +
tests/css/parser/at-valid-06.ref.css | 1 +
tests/css/parser/at-valid-07.css | 1 +
tests/css/parser/at-valid-08.css | 1 +
tests/css/parser/at-valid-08.ref.css | 1 +
tests/css/parser/at-valid-09.css | 1 +
tests/css/parser/at-valid-09.ref.css | 1 +
tests/css/parser/at-valid-10.css | 1 +
tests/css/parser/at-valid-10.ref.css | 1 +
tests/css/parser/at-valid-11.css | 1 +
tests/css/parser/at-valid-11.ref.css | 1 +
tests/css/parser/at-valid-12.css | 1 +
tests/css/parser/at-valid-12.ref.css | 1 +
tests/css/parser/at-valid-13.css | 1 +
tests/css/parser/at-valid-13.ref.css | 1 +
tests/css/parser/at-valid-14.css | 1 +
tests/css/parser/at-valid-14.ref.css | 1 +
tests/css/parser/at-valid-15.css | 1 +
tests/css/parser/at-valid-15.ref.css | 1 +
tests/css/parser/at-valid-16.css | 1 +
tests/css/parser/at-valid-16.ref.css | 1 +
tests/css/parser/at-valid-17.css | 1 +
tests/css/parser/at-valid-18.css | 1 +
tests/css/parser/at-valid-18.ref.css | 1 +
tests/css/parser/at-valid-19.css | 1 +
tests/css/parser/at-valid-19.errors | 1 +
tests/css/parser/at-valid-20.css | 4 +
tests/css/parser/at-valid-20.errors | 1 +
tests/css/parser/at-valid-21.css | 4 +
tests/css/parser/at-valid-21.errors | 1 +
96 files changed, 241 insertions(+), 94 deletions(-)
---
diff --git a/gtk/tests/stylecontext.c b/gtk/tests/stylecontext.c
index f68128e..cd5f30b 100644
--- a/gtk/tests/stylecontext.c
+++ b/gtk/tests/stylecontext.c
@@ -19,99 +19,6 @@ test_parse_empty (void)
}
static void
-test_parse_at (void)
-{
- GtkCssProvider *provider;
- GError *error;
- gboolean res;
- gint i;
- const gchar *valid[] = {
- "@import \"" SRCDIR "/test.css\";",
- "@import '" SRCDIR "/test.css';",
- "@import url(\"" SRCDIR "/test.css\");",
- "@import url('" SRCDIR "/test.css');",
- "@import\nurl (\t\"" SRCDIR "/test.css\" ) ;",
- "@define-color bg_color #f9a039;",
- "@define-color color @bg_color;",
- "@define-color color rgb(100, 99, 88);",
- "@define-color color rgba(50%, 50%, 50%, 0.5);",
- "@define-color color lighter(#f9a039);",
- "@define-color color darker ( @blue ) ;",
- "@define-color color shade(@blue, 1.3);",
- "@define-color color alpha(@blue, 1.3);",
- "@define-color color mix(@blue, @red, 0.2);",
- "@define-color color red;",
- "@define-color color mix(shade (#121212, 0.5), mix (rgb(10%,20%,100%), @blue,0.5), 0.2);",
- "@define-color blue @blue;",
- "@define-color blue123_a-b #123;",
- "@binding-set gtk-emacs-menu { bind \"<ctrl>n\" { \"move-current\" (next) }; };",
- "@binding-set gtk-emacs-text-view {\n"
- " bind \"<ctrl>u\" { \"move-cursor\" (paragraph-ends, -1, 0)\n"
- " \"delete-from-cursor\" (paragraph-ends, 1) };\n"
- "};",
- "@binding-set test {\n"
- " bind \"<ctrl>space\" { \"set-anchor\" () };\n"
- " unbind \"<ctrl>v\";\n"
- "};",
- NULL
- };
-
- const gchar *invalid[] = {
- "@import " SRCDIR "/test.css ;",
- "@import url ( \"" SRCDIR "/test.css\" xyz );",
- "@import url(\");",
- "@import url(');",
- "@import url(\"abc');",
- "@ import ;",
- "@define_color blue red;",
- "@define-color blue #12234;",
- "@define-color blue #12g234;",
- "@define-color blue @@;",
- "@define-color blue 5!#%4 DG$##x;",
- "@define-color color mix(@red, @blue, @green);",
- "@define-color color mix(@blue, 0.2, @red);",
- "@define-color color mix(0.2, @blue, @red);",
- "@define-color color mix(@blue, @red);",
- "@define-color color mix(@blue);",
- "@define-color color mix();",
- "@define-color color rgba(50%, 50%, 50%);",
- "@define-color color rgb(50%, a);",
- "@define-color 1col rgb(50%, a);",
- "@three-dee { some other crap };",
- "@binding-set \"foo\";",
- "@binding-set foo { bind key { \"action\"() }; };",
- "@binding-set foo { bind key { \"action\"() }; };",
- "@binding-set foo { bind \"key\" { action() }; };",
- "@binding-set foo { bind \"key\"; };",
- "@binding-set foo { unbind \"key\" { \"bla\" () }; };",
- NULL
- };
-
- error = NULL;
- for (i = 0; valid[i]; i++)
- {
- provider = gtk_css_provider_new ();
- res = gtk_css_provider_load_from_data (provider, valid[i], -1, &error);
- if (error)
- g_print ("parsing '%s': got unexpected error: %s\n", valid[i], error->message);
- g_assert_no_error (error);
- g_assert (res);
-
- g_object_unref (provider);
- }
-
- for (i = 0; invalid[i]; i++)
- {
- provider = gtk_css_provider_new ();
- res = gtk_css_provider_load_from_data (provider, invalid[i], -1, &error);
- g_assert_error (error, GTK_CSS_PROVIDER_ERROR, GTK_CSS_PROVIDER_ERROR_FAILED);
- g_assert (!res);
- g_object_unref (provider);
- g_clear_error (&error);
- }
-}
-
-static void
test_parse_selectors (void)
{
GtkCssProvider *provider;
@@ -563,7 +470,6 @@ main (int argc, char *argv[])
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/style/parse/empty", test_parse_empty);
- g_test_add_func ("/style/parse/at", test_parse_at);
g_test_add_func ("/style/parse/selectors", test_parse_selectors);
g_test_add_func ("/style/parse/declarations", test_parse_declarations);
g_test_add_func ("/style/path", test_path);
diff --git a/tests/css/parser/Makefile.am b/tests/css/parser/Makefile.am
index 27d2ac0..47dc014 100644
--- a/tests/css/parser/Makefile.am
+++ b/tests/css/parser/Makefile.am
@@ -25,6 +25,130 @@ clean-local:
rm $(builddir)/*.out.css || true
EXTRA_DIST += \
+ at-invalid-01.css \
+ at-invalid-01.errors \
+ at-invalid-01.ref.css \
+ at-invalid-02.css \
+ at-invalid-02.errors \
+ at-invalid-02.ref.css \
+ at-invalid-03.css \
+ at-invalid-03.errors \
+ at-invalid-03.ref.css \
+ at-invalid-04.css \
+ at-invalid-04.errors \
+ at-invalid-04.ref.css \
+ at-invalid-05.css \
+ at-invalid-05.errors \
+ at-invalid-05.ref.css \
+ at-invalid-06.css \
+ at-invalid-06.errors \
+ at-invalid-06.ref.css \
+ at-invalid-07.css \
+ at-invalid-07.errors \
+ at-invalid-07.ref.css \
+ at-invalid-08.css \
+ at-invalid-08.errors \
+ at-invalid-08.ref.css \
+ at-invalid-09.css \
+ at-invalid-09.errors \
+ at-invalid-09.ref.css \
+ at-invalid-10.css \
+ at-invalid-10.errors \
+ at-invalid-10.ref.css \
+ at-invalid-11.css \
+ at-invalid-11.errors \
+ at-invalid-11.ref.css \
+ at-invalid-12.css \
+ at-invalid-12.errors \
+ at-invalid-12.ref.css \
+ at-invalid-13.css \
+ at-invalid-13.errors \
+ at-invalid-13.ref.css \
+ at-invalid-14.css \
+ at-invalid-14.errors \
+ at-invalid-14.ref.css \
+ at-invalid-15.css \
+ at-invalid-15.errors \
+ at-invalid-15.ref.css \
+ at-invalid-16.css \
+ at-invalid-16.errors \
+ at-invalid-16.ref.css \
+ at-invalid-17.css \
+ at-invalid-17.errors \
+ at-invalid-17.ref.css \
+ at-invalid-18.css \
+ at-invalid-18.errors \
+ at-invalid-18.ref.css \
+ at-invalid-19.css \
+ at-invalid-19.errors \
+ at-invalid-19.ref.css \
+ at-invalid-20.css \
+ at-invalid-20.errors \
+ at-invalid-20.ref.css \
+ at-invalid-21.css \
+ at-invalid-21.errors \
+ at-invalid-21.ref.css \
+ at-invalid-22.css \
+ at-invalid-22.errors \
+ at-invalid-22.ref.css \
+ at-invalid-23.css \
+ at-invalid-23.errors \
+ at-invalid-23.ref.css \
+ at-invalid-24.css \
+ at-invalid-24.errors \
+ at-invalid-24.ref.css \
+ at-invalid-25.css \
+ at-invalid-25.errors \
+ at-invalid-25.ref.css \
+ at-invalid-26.css \
+ at-invalid-26.errors \
+ at-invalid-26.ref.css \
+ at-invalid-27.css \
+ at-invalid-27.errors \
+ at-invalid-27.ref.css \
+ at-valid-01.css \
+ at-valid-01.ref.css \
+ at-valid-02.css \
+ at-valid-02.ref.css \
+ at-valid-03.css \
+ at-valid-03.ref.css \
+ at-valid-04.css \
+ at-valid-04.ref.css \
+ at-valid-05.css \
+ at-valid-05.ref.css \
+ at-valid-06.css \
+ at-valid-06.ref.css \
+ at-valid-07.css \
+ at-valid-08.css \
+ at-valid-08.ref.css \
+ at-valid-09.css \
+ at-valid-09.ref.css \
+ at-valid-10.css \
+ at-valid-10.ref.css \
+ at-valid-11.css \
+ at-valid-11.ref.css \
+ at-valid-12.css \
+ at-valid-12.ref.css \
+ at-valid-13.css \
+ at-valid-13.ref.css \
+ at-valid-14.css \
+ at-valid-14.ref.css \
+ at-valid-15.css \
+ at-valid-15.ref.css \
+ at-valid-16.css \
+ at-valid-16.ref.css \
+ at-valid-17.css \
+ at-valid-18.css \
+ at-valid-18.ref.css \
+ at-valid-19.css \
+ at-valid-19.errors \
+ at-valid-19.ref.css \
+ at-valid-20.css \
+ at-valid-20.errors \
+ at-valid-20.ref.css \
+ at-valid-21.css \
+ at-valid-21.errors \
+ at-valid-21.ref.css \
boolean.css \
boolean.errors \
boolean.ref.css \
diff --git a/tests/css/parser/at-invalid-01.css b/tests/css/parser/at-invalid-01.css
new file mode 100644
index 0000000..4471b63
--- /dev/null
+++ b/tests/css/parser/at-invalid-01.css
@@ -0,0 +1 @@
+ import ./test.css ;
diff --git a/tests/css/parser/at-invalid-01.errors b/tests/css/parser/at-invalid-01.errors
new file mode 100644
index 0000000..1bb2528
--- /dev/null
+++ b/tests/css/parser/at-invalid-01.errors
@@ -0,0 +1 @@
+at-invalid-01.css:1: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
diff --git a/tests/css/parser/at-invalid-01.ref.css b/tests/css/parser/at-invalid-01.ref.css
new file mode 100644
index 0000000..e69de29
diff --git a/tests/css/parser/at-invalid-02.css b/tests/css/parser/at-invalid-02.css
new file mode 100644
index 0000000..d3f9378
--- /dev/null
+++ b/tests/css/parser/at-invalid-02.css
@@ -0,0 +1 @@
+ import url ( "./test.css" xyz );
diff --git a/tests/css/parser/at-invalid-02.errors b/tests/css/parser/at-invalid-02.errors
new file mode 100644
index 0000000..9cf27d4
--- /dev/null
+++ b/tests/css/parser/at-invalid-02.errors
@@ -0,0 +1 @@
+at-invalid-02.css:1: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
diff --git a/tests/css/parser/at-invalid-02.ref.css b/tests/css/parser/at-invalid-02.ref.css
new file mode 100644
index 0000000..e69de29
diff --git a/tests/css/parser/at-invalid-03.css b/tests/css/parser/at-invalid-03.css
new file mode 100644
index 0000000..36e809e
--- /dev/null
+++ b/tests/css/parser/at-invalid-03.css
@@ -0,0 +1 @@
+ import url(");
diff --git a/tests/css/parser/at-invalid-03.errors b/tests/css/parser/at-invalid-03.errors
new file mode 100644
index 0000000..1437e5a
--- /dev/null
+++ b/tests/css/parser/at-invalid-03.errors
@@ -0,0 +1 @@
+at-invalid-03.css:1: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
diff --git a/tests/css/parser/at-invalid-03.ref.css b/tests/css/parser/at-invalid-03.ref.css
new file mode 100644
index 0000000..e69de29
diff --git a/tests/css/parser/at-invalid-04.css b/tests/css/parser/at-invalid-04.css
new file mode 100644
index 0000000..c04f7c3
--- /dev/null
+++ b/tests/css/parser/at-invalid-04.css
@@ -0,0 +1 @@
+ import url(');
diff --git a/tests/css/parser/at-invalid-04.errors b/tests/css/parser/at-invalid-04.errors
new file mode 100644
index 0000000..dc09c87
--- /dev/null
+++ b/tests/css/parser/at-invalid-04.errors
@@ -0,0 +1 @@
+at-invalid-04.css:1: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
diff --git a/tests/css/parser/at-invalid-04.ref.css b/tests/css/parser/at-invalid-04.ref.css
new file mode 100644
index 0000000..e69de29
diff --git a/tests/css/parser/at-invalid-05.css b/tests/css/parser/at-invalid-05.css
new file mode 100644
index 0000000..e37b697
--- /dev/null
+++ b/tests/css/parser/at-invalid-05.css
@@ -0,0 +1 @@
+ import url("abc');
diff --git a/tests/css/parser/at-invalid-05.errors b/tests/css/parser/at-invalid-05.errors
new file mode 100644
index 0000000..3939d20
--- /dev/null
+++ b/tests/css/parser/at-invalid-05.errors
@@ -0,0 +1 @@
+at-invalid-05.css:1: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
diff --git a/tests/css/parser/at-invalid-05.ref.css b/tests/css/parser/at-invalid-05.ref.css
new file mode 100644
index 0000000..e69de29
diff --git a/tests/css/parser/at-invalid-06.css b/tests/css/parser/at-invalid-06.css
new file mode 100644
index 0000000..80eb1b6
--- /dev/null
+++ b/tests/css/parser/at-invalid-06.css
@@ -0,0 +1 @@
+@ import ;
diff --git a/tests/css/parser/at-invalid-06.errors b/tests/css/parser/at-invalid-06.errors
new file mode 100644
index 0000000..a21622d
--- /dev/null
+++ b/tests/css/parser/at-invalid-06.errors
@@ -0,0 +1 @@
+at-invalid-06.css:1: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
diff --git a/tests/css/parser/at-invalid-06.ref.css b/tests/css/parser/at-invalid-06.ref.css
new file mode 100644
index 0000000..e69de29
diff --git a/tests/css/parser/at-invalid-07.css b/tests/css/parser/at-invalid-07.css
new file mode 100644
index 0000000..e86c694
--- /dev/null
+++ b/tests/css/parser/at-invalid-07.css
@@ -0,0 +1 @@
+ define_color blue red;
diff --git a/tests/css/parser/at-invalid-07.errors b/tests/css/parser/at-invalid-07.errors
new file mode 100644
index 0000000..cc515cc
--- /dev/null
+++ b/tests/css/parser/at-invalid-07.errors
@@ -0,0 +1 @@
+at-invalid-07.css:1: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
diff --git a/tests/css/parser/at-invalid-07.ref.css b/tests/css/parser/at-invalid-07.ref.css
new file mode 100644
index 0000000..e69de29
diff --git a/tests/css/parser/at-invalid-08.css b/tests/css/parser/at-invalid-08.css
new file mode 100644
index 0000000..0918be3
--- /dev/null
+++ b/tests/css/parser/at-invalid-08.css
@@ -0,0 +1 @@
+ define-color blue #12234;
diff --git a/tests/css/parser/at-invalid-08.errors b/tests/css/parser/at-invalid-08.errors
new file mode 100644
index 0000000..46f6b7a
--- /dev/null
+++ b/tests/css/parser/at-invalid-08.errors
@@ -0,0 +1 @@
+at-invalid-08.css:1: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
diff --git a/tests/css/parser/at-invalid-08.ref.css b/tests/css/parser/at-invalid-08.ref.css
new file mode 100644
index 0000000..e69de29
diff --git a/tests/css/parser/at-invalid-09.css b/tests/css/parser/at-invalid-09.css
new file mode 100644
index 0000000..6ba62b4
--- /dev/null
+++ b/tests/css/parser/at-invalid-09.css
@@ -0,0 +1 @@
+ define-color blue #12g234;
diff --git a/tests/css/parser/at-invalid-09.errors b/tests/css/parser/at-invalid-09.errors
new file mode 100644
index 0000000..a2b6339
--- /dev/null
+++ b/tests/css/parser/at-invalid-09.errors
@@ -0,0 +1 @@
+at-invalid-09.css:1: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
diff --git a/tests/css/parser/at-invalid-09.ref.css b/tests/css/parser/at-invalid-09.ref.css
new file mode 100644
index 0000000..e69de29
diff --git a/tests/css/parser/at-invalid-10.css b/tests/css/parser/at-invalid-10.css
new file mode 100644
index 0000000..d1740bd
--- /dev/null
+++ b/tests/css/parser/at-invalid-10.css
@@ -0,0 +1 @@
+ define-color blue @@;
diff --git a/tests/css/parser/at-invalid-10.errors b/tests/css/parser/at-invalid-10.errors
new file mode 100644
index 0000000..b6f8505
--- /dev/null
+++ b/tests/css/parser/at-invalid-10.errors
@@ -0,0 +1 @@
+at-invalid-10.css:1: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
diff --git a/tests/css/parser/at-invalid-10.ref.css b/tests/css/parser/at-invalid-10.ref.css
new file mode 100644
index 0000000..e69de29
diff --git a/tests/css/parser/at-invalid-11.css b/tests/css/parser/at-invalid-11.css
new file mode 100644
index 0000000..0efc782
--- /dev/null
+++ b/tests/css/parser/at-invalid-11.css
@@ -0,0 +1 @@
+ define-color blue 5!#%4 DG$##x;
diff --git a/tests/css/parser/at-invalid-11.errors b/tests/css/parser/at-invalid-11.errors
new file mode 100644
index 0000000..2a3ab68
--- /dev/null
+++ b/tests/css/parser/at-invalid-11.errors
@@ -0,0 +1 @@
+at-invalid-11.css:1: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
diff --git a/tests/css/parser/at-invalid-11.ref.css b/tests/css/parser/at-invalid-11.ref.css
new file mode 100644
index 0000000..e69de29
diff --git a/tests/css/parser/at-invalid-12.css b/tests/css/parser/at-invalid-12.css
new file mode 100644
index 0000000..cc51f45
--- /dev/null
+++ b/tests/css/parser/at-invalid-12.css
@@ -0,0 +1 @@
+ define-color color mix(@red, @blue, @green);
diff --git a/tests/css/parser/at-invalid-12.errors b/tests/css/parser/at-invalid-12.errors
new file mode 100644
index 0000000..4d0bfbc
--- /dev/null
+++ b/tests/css/parser/at-invalid-12.errors
@@ -0,0 +1 @@
+at-invalid-12.css:1: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
diff --git a/tests/css/parser/at-invalid-12.ref.css b/tests/css/parser/at-invalid-12.ref.css
new file mode 100644
index 0000000..e69de29
diff --git a/tests/css/parser/at-invalid-13.css b/tests/css/parser/at-invalid-13.css
new file mode 100644
index 0000000..790636c
--- /dev/null
+++ b/tests/css/parser/at-invalid-13.css
@@ -0,0 +1 @@
+ define-color color mix(@blue, 0.2, @red);
diff --git a/tests/css/parser/at-invalid-13.errors b/tests/css/parser/at-invalid-13.errors
new file mode 100644
index 0000000..a1bf963
--- /dev/null
+++ b/tests/css/parser/at-invalid-13.errors
@@ -0,0 +1 @@
+at-invalid-13.css:1: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
diff --git a/tests/css/parser/at-invalid-13.ref.css b/tests/css/parser/at-invalid-13.ref.css
new file mode 100644
index 0000000..e69de29
diff --git a/tests/css/parser/at-invalid-14.css b/tests/css/parser/at-invalid-14.css
new file mode 100644
index 0000000..486ed3b
--- /dev/null
+++ b/tests/css/parser/at-invalid-14.css
@@ -0,0 +1 @@
+ define-color color mix(0.2, @blue, @red);
diff --git a/tests/css/parser/at-invalid-14.errors b/tests/css/parser/at-invalid-14.errors
new file mode 100644
index 0000000..2ce10f4
--- /dev/null
+++ b/tests/css/parser/at-invalid-14.errors
@@ -0,0 +1 @@
+at-invalid-14.css:1: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
diff --git a/tests/css/parser/at-invalid-14.ref.css b/tests/css/parser/at-invalid-14.ref.css
new file mode 100644
index 0000000..e69de29
diff --git a/tests/css/parser/at-invalid-15.css b/tests/css/parser/at-invalid-15.css
new file mode 100644
index 0000000..c0d7899
--- /dev/null
+++ b/tests/css/parser/at-invalid-15.css
@@ -0,0 +1 @@
+ define-color color mix(@blue, @red);
diff --git a/tests/css/parser/at-invalid-15.errors b/tests/css/parser/at-invalid-15.errors
new file mode 100644
index 0000000..c94855a
--- /dev/null
+++ b/tests/css/parser/at-invalid-15.errors
@@ -0,0 +1 @@
+at-invalid-15.css:1: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
diff --git a/tests/css/parser/at-invalid-15.ref.css b/tests/css/parser/at-invalid-15.ref.css
new file mode 100644
index 0000000..e69de29
diff --git a/tests/css/parser/at-invalid-16.css b/tests/css/parser/at-invalid-16.css
new file mode 100644
index 0000000..5cea89a
--- /dev/null
+++ b/tests/css/parser/at-invalid-16.css
@@ -0,0 +1 @@
+ define-color color mix(@blue);
diff --git a/tests/css/parser/at-invalid-16.errors b/tests/css/parser/at-invalid-16.errors
new file mode 100644
index 0000000..cb821d9
--- /dev/null
+++ b/tests/css/parser/at-invalid-16.errors
@@ -0,0 +1 @@
+at-invalid-16.css:1: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
diff --git a/tests/css/parser/at-invalid-16.ref.css b/tests/css/parser/at-invalid-16.ref.css
new file mode 100644
index 0000000..e69de29
diff --git a/tests/css/parser/at-invalid-17.css b/tests/css/parser/at-invalid-17.css
new file mode 100644
index 0000000..6a0b290
--- /dev/null
+++ b/tests/css/parser/at-invalid-17.css
@@ -0,0 +1 @@
+ define-color color mix();
diff --git a/tests/css/parser/at-invalid-17.errors b/tests/css/parser/at-invalid-17.errors
new file mode 100644
index 0000000..0e12961
--- /dev/null
+++ b/tests/css/parser/at-invalid-17.errors
@@ -0,0 +1 @@
+at-invalid-17.css:1: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
diff --git a/tests/css/parser/at-invalid-17.ref.css b/tests/css/parser/at-invalid-17.ref.css
new file mode 100644
index 0000000..e69de29
diff --git a/tests/css/parser/at-invalid-18.css b/tests/css/parser/at-invalid-18.css
new file mode 100644
index 0000000..32e51ea
--- /dev/null
+++ b/tests/css/parser/at-invalid-18.css
@@ -0,0 +1 @@
+ define-color color rgba(50%, 50%, 50%);
diff --git a/tests/css/parser/at-invalid-18.errors b/tests/css/parser/at-invalid-18.errors
new file mode 100644
index 0000000..52e5d54
--- /dev/null
+++ b/tests/css/parser/at-invalid-18.errors
@@ -0,0 +1 @@
+at-invalid-18.css:1: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
diff --git a/tests/css/parser/at-invalid-18.ref.css b/tests/css/parser/at-invalid-18.ref.css
new file mode 100644
index 0000000..e69de29
diff --git a/tests/css/parser/at-invalid-19.css b/tests/css/parser/at-invalid-19.css
new file mode 100644
index 0000000..d297da4
--- /dev/null
+++ b/tests/css/parser/at-invalid-19.css
@@ -0,0 +1 @@
+ define-color color rgb(50%, a);
diff --git a/tests/css/parser/at-invalid-19.errors b/tests/css/parser/at-invalid-19.errors
new file mode 100644
index 0000000..1adccb2
--- /dev/null
+++ b/tests/css/parser/at-invalid-19.errors
@@ -0,0 +1 @@
+at-invalid-19.css:1: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
diff --git a/tests/css/parser/at-invalid-19.ref.css b/tests/css/parser/at-invalid-19.ref.css
new file mode 100644
index 0000000..e69de29
diff --git a/tests/css/parser/at-invalid-20.css b/tests/css/parser/at-invalid-20.css
new file mode 100644
index 0000000..1e2e25f
--- /dev/null
+++ b/tests/css/parser/at-invalid-20.css
@@ -0,0 +1 @@
+ define-color 1col rgb(50%, a);
diff --git a/tests/css/parser/at-invalid-20.errors b/tests/css/parser/at-invalid-20.errors
new file mode 100644
index 0000000..075ca99
--- /dev/null
+++ b/tests/css/parser/at-invalid-20.errors
@@ -0,0 +1 @@
+at-invalid-20.css:1: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
diff --git a/tests/css/parser/at-invalid-20.ref.css b/tests/css/parser/at-invalid-20.ref.css
new file mode 100644
index 0000000..e69de29
diff --git a/tests/css/parser/at-invalid-21.css b/tests/css/parser/at-invalid-21.css
new file mode 100644
index 0000000..96955d7
--- /dev/null
+++ b/tests/css/parser/at-invalid-21.css
@@ -0,0 +1 @@
+ three-dee { some other crap };
diff --git a/tests/css/parser/at-invalid-21.errors b/tests/css/parser/at-invalid-21.errors
new file mode 100644
index 0000000..3cc8423
--- /dev/null
+++ b/tests/css/parser/at-invalid-21.errors
@@ -0,0 +1,2 @@
+at-invalid-21.css:1: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
+at-invalid-21.css:1: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
diff --git a/tests/css/parser/at-invalid-21.ref.css b/tests/css/parser/at-invalid-21.ref.css
new file mode 100644
index 0000000..e69de29
diff --git a/tests/css/parser/at-invalid-22.css b/tests/css/parser/at-invalid-22.css
new file mode 100644
index 0000000..c5cd8a3
--- /dev/null
+++ b/tests/css/parser/at-invalid-22.css
@@ -0,0 +1 @@
+ binding-set "foo";
diff --git a/tests/css/parser/at-invalid-22.errors b/tests/css/parser/at-invalid-22.errors
new file mode 100644
index 0000000..8aa7420
--- /dev/null
+++ b/tests/css/parser/at-invalid-22.errors
@@ -0,0 +1 @@
+at-invalid-22.css:1: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
diff --git a/tests/css/parser/at-invalid-22.ref.css b/tests/css/parser/at-invalid-22.ref.css
new file mode 100644
index 0000000..e69de29
diff --git a/tests/css/parser/at-invalid-23.css b/tests/css/parser/at-invalid-23.css
new file mode 100644
index 0000000..4ecc50c
--- /dev/null
+++ b/tests/css/parser/at-invalid-23.css
@@ -0,0 +1 @@
+ binding-set foo { bind key { "action"() }; };
diff --git a/tests/css/parser/at-invalid-23.errors b/tests/css/parser/at-invalid-23.errors
new file mode 100644
index 0000000..a2dbe8d
--- /dev/null
+++ b/tests/css/parser/at-invalid-23.errors
@@ -0,0 +1,2 @@
+at-invalid-23.css:1: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
+at-invalid-23.css:1: error: GTK_CSS_PROVIDER_ERROR_DEPRECATED
diff --git a/tests/css/parser/at-invalid-23.ref.css b/tests/css/parser/at-invalid-23.ref.css
new file mode 100644
index 0000000..e69de29
diff --git a/tests/css/parser/at-invalid-24.css b/tests/css/parser/at-invalid-24.css
new file mode 100644
index 0000000..4ecc50c
--- /dev/null
+++ b/tests/css/parser/at-invalid-24.css
@@ -0,0 +1 @@
+ binding-set foo { bind key { "action"() }; };
diff --git a/tests/css/parser/at-invalid-24.errors b/tests/css/parser/at-invalid-24.errors
new file mode 100644
index 0000000..717e6b1
--- /dev/null
+++ b/tests/css/parser/at-invalid-24.errors
@@ -0,0 +1,2 @@
+at-invalid-24.css:1: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
+at-invalid-24.css:1: error: GTK_CSS_PROVIDER_ERROR_DEPRECATED
diff --git a/tests/css/parser/at-invalid-24.ref.css b/tests/css/parser/at-invalid-24.ref.css
new file mode 100644
index 0000000..e69de29
diff --git a/tests/css/parser/at-invalid-25.css b/tests/css/parser/at-invalid-25.css
new file mode 100644
index 0000000..94123fb
--- /dev/null
+++ b/tests/css/parser/at-invalid-25.css
@@ -0,0 +1 @@
+ binding-set foo { bind "key" { action() }; };
diff --git a/tests/css/parser/at-invalid-25.errors b/tests/css/parser/at-invalid-25.errors
new file mode 100644
index 0000000..3f1ad85
--- /dev/null
+++ b/tests/css/parser/at-invalid-25.errors
@@ -0,0 +1,2 @@
+at-invalid-25.css:1: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
+at-invalid-25.css:1: error: GTK_CSS_PROVIDER_ERROR_DEPRECATED
diff --git a/tests/css/parser/at-invalid-25.ref.css b/tests/css/parser/at-invalid-25.ref.css
new file mode 100644
index 0000000..e69de29
diff --git a/tests/css/parser/at-invalid-26.css b/tests/css/parser/at-invalid-26.css
new file mode 100644
index 0000000..0ea47d6
--- /dev/null
+++ b/tests/css/parser/at-invalid-26.css
@@ -0,0 +1 @@
+ binding-set foo { bind "key"; };
diff --git a/tests/css/parser/at-invalid-26.errors b/tests/css/parser/at-invalid-26.errors
new file mode 100644
index 0000000..bbe9763
--- /dev/null
+++ b/tests/css/parser/at-invalid-26.errors
@@ -0,0 +1,2 @@
+at-invalid-26.css:1: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
+at-invalid-26.css:1: error: GTK_CSS_PROVIDER_ERROR_DEPRECATED
diff --git a/tests/css/parser/at-invalid-26.ref.css b/tests/css/parser/at-invalid-26.ref.css
new file mode 100644
index 0000000..e69de29
diff --git a/tests/css/parser/at-invalid-27.css b/tests/css/parser/at-invalid-27.css
new file mode 100644
index 0000000..b0c81e1
--- /dev/null
+++ b/tests/css/parser/at-invalid-27.css
@@ -0,0 +1 @@
+ binding-set foo { unbind "key" { "bla" () }; };
diff --git a/tests/css/parser/at-invalid-27.errors b/tests/css/parser/at-invalid-27.errors
new file mode 100644
index 0000000..e15ca48
--- /dev/null
+++ b/tests/css/parser/at-invalid-27.errors
@@ -0,0 +1,2 @@
+at-invalid-27.css:1: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
+at-invalid-27.css:1: error: GTK_CSS_PROVIDER_ERROR_DEPRECATED
diff --git a/tests/css/parser/at-invalid-27.ref.css b/tests/css/parser/at-invalid-27.ref.css
new file mode 100644
index 0000000..e69de29
diff --git a/tests/css/parser/at-valid-01.css b/tests/css/parser/at-valid-01.css
new file mode 100644
index 0000000..0628b89
--- /dev/null
+++ b/tests/css/parser/at-valid-01.css
@@ -0,0 +1 @@
+ import "./simple.css";
diff --git a/tests/css/parser/at-valid-01.ref.css b/tests/css/parser/at-valid-01.ref.css
new file mode 100644
index 0000000..d6caa99
--- /dev/null
+++ b/tests/css/parser/at-valid-01.ref.css
@@ -0,0 +1,3 @@
+foo {
+ color: rgb(0,0,0);
+}
diff --git a/tests/css/parser/at-valid-02.css b/tests/css/parser/at-valid-02.css
new file mode 100644
index 0000000..1a82849
--- /dev/null
+++ b/tests/css/parser/at-valid-02.css
@@ -0,0 +1 @@
+ import './simple.css';
diff --git a/tests/css/parser/at-valid-02.ref.css b/tests/css/parser/at-valid-02.ref.css
new file mode 100644
index 0000000..d6caa99
--- /dev/null
+++ b/tests/css/parser/at-valid-02.ref.css
@@ -0,0 +1,3 @@
+foo {
+ color: rgb(0,0,0);
+}
diff --git a/tests/css/parser/at-valid-03.css b/tests/css/parser/at-valid-03.css
new file mode 100644
index 0000000..c652f4e
--- /dev/null
+++ b/tests/css/parser/at-valid-03.css
@@ -0,0 +1 @@
+ import url("./simple.css");
diff --git a/tests/css/parser/at-valid-03.ref.css b/tests/css/parser/at-valid-03.ref.css
new file mode 100644
index 0000000..d6caa99
--- /dev/null
+++ b/tests/css/parser/at-valid-03.ref.css
@@ -0,0 +1,3 @@
+foo {
+ color: rgb(0,0,0);
+}
diff --git a/tests/css/parser/at-valid-04.css b/tests/css/parser/at-valid-04.css
new file mode 100644
index 0000000..d59e12b
--- /dev/null
+++ b/tests/css/parser/at-valid-04.css
@@ -0,0 +1 @@
+ import url('./simple.css');
diff --git a/tests/css/parser/at-valid-04.ref.css b/tests/css/parser/at-valid-04.ref.css
new file mode 100644
index 0000000..d6caa99
--- /dev/null
+++ b/tests/css/parser/at-valid-04.ref.css
@@ -0,0 +1,3 @@
+foo {
+ color: rgb(0,0,0);
+}
diff --git a/tests/css/parser/at-valid-05.css b/tests/css/parser/at-valid-05.css
new file mode 100644
index 0000000..3a50fbc
--- /dev/null
+++ b/tests/css/parser/at-valid-05.css
@@ -0,0 +1,2 @@
+ import
+url( "./simple.css" ) ;
diff --git a/tests/css/parser/at-valid-05.ref.css b/tests/css/parser/at-valid-05.ref.css
new file mode 100644
index 0000000..d6caa99
--- /dev/null
+++ b/tests/css/parser/at-valid-05.ref.css
@@ -0,0 +1,3 @@
+foo {
+ color: rgb(0,0,0);
+}
diff --git a/tests/css/parser/at-valid-06.css b/tests/css/parser/at-valid-06.css
new file mode 100644
index 0000000..81c788f
--- /dev/null
+++ b/tests/css/parser/at-valid-06.css
@@ -0,0 +1 @@
+ define-color bg_color #f9a039;
diff --git a/tests/css/parser/at-valid-06.ref.css b/tests/css/parser/at-valid-06.ref.css
new file mode 100644
index 0000000..9a713d3
--- /dev/null
+++ b/tests/css/parser/at-valid-06.ref.css
@@ -0,0 +1 @@
+ define-color bg_color rgb(249,160,57);
diff --git a/tests/css/parser/at-valid-07.css b/tests/css/parser/at-valid-07.css
new file mode 100644
index 0000000..0b03a93
--- /dev/null
+++ b/tests/css/parser/at-valid-07.css
@@ -0,0 +1 @@
+ define-color color @bg_color;
diff --git a/tests/css/parser/at-valid-08.css b/tests/css/parser/at-valid-08.css
new file mode 100644
index 0000000..0454e0a
--- /dev/null
+++ b/tests/css/parser/at-valid-08.css
@@ -0,0 +1 @@
+ define-color color rgb(100, 99, 88);
diff --git a/tests/css/parser/at-valid-08.ref.css b/tests/css/parser/at-valid-08.ref.css
new file mode 100644
index 0000000..6f6d0ee
--- /dev/null
+++ b/tests/css/parser/at-valid-08.ref.css
@@ -0,0 +1 @@
+ define-color color rgb(100,99,88);
diff --git a/tests/css/parser/at-valid-09.css b/tests/css/parser/at-valid-09.css
new file mode 100644
index 0000000..0688220
--- /dev/null
+++ b/tests/css/parser/at-valid-09.css
@@ -0,0 +1 @@
+ define-color color rgba(50%, 50%, 50%, 0.5);
diff --git a/tests/css/parser/at-valid-09.ref.css b/tests/css/parser/at-valid-09.ref.css
new file mode 100644
index 0000000..4eac516
--- /dev/null
+++ b/tests/css/parser/at-valid-09.ref.css
@@ -0,0 +1 @@
+ define-color color rgba(128,128,128,0.5);
diff --git a/tests/css/parser/at-valid-10.css b/tests/css/parser/at-valid-10.css
new file mode 100644
index 0000000..6ea6b96
--- /dev/null
+++ b/tests/css/parser/at-valid-10.css
@@ -0,0 +1 @@
+ define-color color lighter(#f9a039);
diff --git a/tests/css/parser/at-valid-10.ref.css b/tests/css/parser/at-valid-10.ref.css
new file mode 100644
index 0000000..ce6c4e2
--- /dev/null
+++ b/tests/css/parser/at-valid-10.ref.css
@@ -0,0 +1 @@
+ define-color color shade (rgb(249,160,57), 1.3);
diff --git a/tests/css/parser/at-valid-11.css b/tests/css/parser/at-valid-11.css
new file mode 100644
index 0000000..db96269
--- /dev/null
+++ b/tests/css/parser/at-valid-11.css
@@ -0,0 +1 @@
+ define-color color darker ( @blue ) ;
diff --git a/tests/css/parser/at-valid-11.ref.css b/tests/css/parser/at-valid-11.ref.css
new file mode 100644
index 0000000..02962b8
--- /dev/null
+++ b/tests/css/parser/at-valid-11.ref.css
@@ -0,0 +1 @@
+ define-color color shade (@blue, 0.69999999999999996);
diff --git a/tests/css/parser/at-valid-12.css b/tests/css/parser/at-valid-12.css
new file mode 100644
index 0000000..b4f20ce
--- /dev/null
+++ b/tests/css/parser/at-valid-12.css
@@ -0,0 +1 @@
+ define-color color shade(@blue, 1.3);
diff --git a/tests/css/parser/at-valid-12.ref.css b/tests/css/parser/at-valid-12.ref.css
new file mode 100644
index 0000000..f6b40c2
--- /dev/null
+++ b/tests/css/parser/at-valid-12.ref.css
@@ -0,0 +1 @@
+ define-color color shade (@blue, 1.3);
diff --git a/tests/css/parser/at-valid-13.css b/tests/css/parser/at-valid-13.css
new file mode 100644
index 0000000..836b77a
--- /dev/null
+++ b/tests/css/parser/at-valid-13.css
@@ -0,0 +1 @@
+ define-color color alpha(@blue, 1.3);
diff --git a/tests/css/parser/at-valid-13.ref.css b/tests/css/parser/at-valid-13.ref.css
new file mode 100644
index 0000000..6bb4096
--- /dev/null
+++ b/tests/css/parser/at-valid-13.ref.css
@@ -0,0 +1 @@
+ define-color color alpha (@blue, 1.3);
diff --git a/tests/css/parser/at-valid-14.css b/tests/css/parser/at-valid-14.css
new file mode 100644
index 0000000..843ea03
--- /dev/null
+++ b/tests/css/parser/at-valid-14.css
@@ -0,0 +1 @@
+ define-color color mix(@blue, @red, 0.2);
diff --git a/tests/css/parser/at-valid-14.ref.css b/tests/css/parser/at-valid-14.ref.css
new file mode 100644
index 0000000..1cf85d7
--- /dev/null
+++ b/tests/css/parser/at-valid-14.ref.css
@@ -0,0 +1 @@
+ define-color color mix (@blue, @red, 0.20000000000000001);
diff --git a/tests/css/parser/at-valid-15.css b/tests/css/parser/at-valid-15.css
new file mode 100644
index 0000000..9546c5b
--- /dev/null
+++ b/tests/css/parser/at-valid-15.css
@@ -0,0 +1 @@
+ define-color color red;
diff --git a/tests/css/parser/at-valid-15.ref.css b/tests/css/parser/at-valid-15.ref.css
new file mode 100644
index 0000000..56e909a
--- /dev/null
+++ b/tests/css/parser/at-valid-15.ref.css
@@ -0,0 +1 @@
+ define-color color rgb(255,0,0);
diff --git a/tests/css/parser/at-valid-16.css b/tests/css/parser/at-valid-16.css
new file mode 100644
index 0000000..cc36511
--- /dev/null
+++ b/tests/css/parser/at-valid-16.css
@@ -0,0 +1 @@
+ define-color color mix(shade (#121212, 0.5), mix (rgb(10%,20%,100%), @blue,0.5), 0.2);
diff --git a/tests/css/parser/at-valid-16.ref.css b/tests/css/parser/at-valid-16.ref.css
new file mode 100644
index 0000000..4ca61c7
--- /dev/null
+++ b/tests/css/parser/at-valid-16.ref.css
@@ -0,0 +1 @@
+ define-color color mix (shade (rgb(18,18,18), 0.5), mix (rgb(26,51,255), @blue, 0.5), 0.20000000000000001);
diff --git a/tests/css/parser/at-valid-17.css b/tests/css/parser/at-valid-17.css
new file mode 100644
index 0000000..15af74f
--- /dev/null
+++ b/tests/css/parser/at-valid-17.css
@@ -0,0 +1 @@
+ define-color blue @blue;
diff --git a/tests/css/parser/at-valid-18.css b/tests/css/parser/at-valid-18.css
new file mode 100644
index 0000000..d2d0f6e
--- /dev/null
+++ b/tests/css/parser/at-valid-18.css
@@ -0,0 +1 @@
+ define-color blue123_a-b #123;
diff --git a/tests/css/parser/at-valid-18.ref.css b/tests/css/parser/at-valid-18.ref.css
new file mode 100644
index 0000000..3bae68d
--- /dev/null
+++ b/tests/css/parser/at-valid-18.ref.css
@@ -0,0 +1 @@
+ define-color blue123_a-b rgb(17,34,51);
diff --git a/tests/css/parser/at-valid-19.css b/tests/css/parser/at-valid-19.css
new file mode 100644
index 0000000..026aad2
--- /dev/null
+++ b/tests/css/parser/at-valid-19.css
@@ -0,0 +1 @@
+ binding-set gtk-emacs-menu { bind "<ctrl>n" { "move-current" (next) }; };
diff --git a/tests/css/parser/at-valid-19.errors b/tests/css/parser/at-valid-19.errors
new file mode 100644
index 0000000..8c865f1
--- /dev/null
+++ b/tests/css/parser/at-valid-19.errors
@@ -0,0 +1 @@
+at-valid-19.css:1: error: GTK_CSS_PROVIDER_ERROR_DEPRECATED
diff --git a/tests/css/parser/at-valid-19.ref.css b/tests/css/parser/at-valid-19.ref.css
new file mode 100644
index 0000000..e69de29
diff --git a/tests/css/parser/at-valid-20.css b/tests/css/parser/at-valid-20.css
new file mode 100644
index 0000000..e2ac94d
--- /dev/null
+++ b/tests/css/parser/at-valid-20.css
@@ -0,0 +1,4 @@
+ binding-set gtk-emacs-text-view {
+ bind "<ctrl>u" { "move-cursor" (paragraph-ends, -1, 0)
+ "delete-from-cursor" (paragraph-ends, 1) };
+};
diff --git a/tests/css/parser/at-valid-20.errors b/tests/css/parser/at-valid-20.errors
new file mode 100644
index 0000000..b404d39
--- /dev/null
+++ b/tests/css/parser/at-valid-20.errors
@@ -0,0 +1 @@
+at-valid-20.css:4: error: GTK_CSS_PROVIDER_ERROR_DEPRECATED
diff --git a/tests/css/parser/at-valid-20.ref.css b/tests/css/parser/at-valid-20.ref.css
new file mode 100644
index 0000000..e69de29
diff --git a/tests/css/parser/at-valid-21.css b/tests/css/parser/at-valid-21.css
new file mode 100644
index 0000000..d4933bb
--- /dev/null
+++ b/tests/css/parser/at-valid-21.css
@@ -0,0 +1,4 @@
+ binding-set test {
+ bind "<ctrl>space" { "set-anchor" () };
+ unbind "<ctrl>v";
+};
diff --git a/tests/css/parser/at-valid-21.errors b/tests/css/parser/at-valid-21.errors
new file mode 100644
index 0000000..1bd8d5b
--- /dev/null
+++ b/tests/css/parser/at-valid-21.errors
@@ -0,0 +1 @@
+at-valid-21.css:4: error: GTK_CSS_PROVIDER_ERROR_DEPRECATED
diff --git a/tests/css/parser/at-valid-21.ref.css b/tests/css/parser/at-valid-21.ref.css
new file mode 100644
index 0000000..e69de29
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]