From 15674c5bd48ffaa676c323a1806653ba1994cd05 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 20 Jul 2011 02:26:50 +0200 Subject: [PATCH] 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-01.ref.css | 0 tests/css/parser/at-invalid-02.css | 1 + tests/css/parser/at-invalid-02.errors | 1 + tests/css/parser/at-invalid-02.ref.css | 0 tests/css/parser/at-invalid-03.css | 1 + tests/css/parser/at-invalid-03.errors | 1 + tests/css/parser/at-invalid-03.ref.css | 0 tests/css/parser/at-invalid-04.css | 1 + tests/css/parser/at-invalid-04.errors | 1 + tests/css/parser/at-invalid-04.ref.css | 0 tests/css/parser/at-invalid-05.css | 1 + tests/css/parser/at-invalid-05.errors | 1 + tests/css/parser/at-invalid-05.ref.css | 0 tests/css/parser/at-invalid-06.css | 1 + tests/css/parser/at-invalid-06.errors | 1 + tests/css/parser/at-invalid-06.ref.css | 0 tests/css/parser/at-invalid-07.css | 1 + tests/css/parser/at-invalid-07.errors | 1 + tests/css/parser/at-invalid-07.ref.css | 0 tests/css/parser/at-invalid-08.css | 1 + tests/css/parser/at-invalid-08.errors | 1 + tests/css/parser/at-invalid-08.ref.css | 0 tests/css/parser/at-invalid-09.css | 1 + tests/css/parser/at-invalid-09.errors | 1 + tests/css/parser/at-invalid-09.ref.css | 0 tests/css/parser/at-invalid-10.css | 1 + tests/css/parser/at-invalid-10.errors | 1 + tests/css/parser/at-invalid-10.ref.css | 0 tests/css/parser/at-invalid-11.css | 1 + tests/css/parser/at-invalid-11.errors | 1 + tests/css/parser/at-invalid-11.ref.css | 0 tests/css/parser/at-invalid-12.css | 1 + tests/css/parser/at-invalid-12.errors | 1 + tests/css/parser/at-invalid-12.ref.css | 0 tests/css/parser/at-invalid-13.css | 1 + tests/css/parser/at-invalid-13.errors | 1 + tests/css/parser/at-invalid-13.ref.css | 0 tests/css/parser/at-invalid-14.css | 1 + tests/css/parser/at-invalid-14.errors | 1 + tests/css/parser/at-invalid-14.ref.css | 0 tests/css/parser/at-invalid-15.css | 1 + tests/css/parser/at-invalid-15.errors | 1 + tests/css/parser/at-invalid-15.ref.css | 0 tests/css/parser/at-invalid-16.css | 1 + tests/css/parser/at-invalid-16.errors | 1 + tests/css/parser/at-invalid-16.ref.css | 0 tests/css/parser/at-invalid-17.css | 1 + tests/css/parser/at-invalid-17.errors | 1 + tests/css/parser/at-invalid-17.ref.css | 0 tests/css/parser/at-invalid-18.css | 1 + tests/css/parser/at-invalid-18.errors | 1 + tests/css/parser/at-invalid-18.ref.css | 0 tests/css/parser/at-invalid-19.css | 1 + tests/css/parser/at-invalid-19.errors | 1 + tests/css/parser/at-invalid-19.ref.css | 0 tests/css/parser/at-invalid-20.css | 1 + tests/css/parser/at-invalid-20.errors | 1 + tests/css/parser/at-invalid-20.ref.css | 0 tests/css/parser/at-invalid-21.css | 1 + tests/css/parser/at-invalid-21.errors | 2 + tests/css/parser/at-invalid-21.ref.css | 0 tests/css/parser/at-invalid-22.css | 1 + tests/css/parser/at-invalid-22.errors | 1 + tests/css/parser/at-invalid-22.ref.css | 0 tests/css/parser/at-invalid-23.css | 1 + tests/css/parser/at-invalid-23.errors | 2 + tests/css/parser/at-invalid-23.ref.css | 0 tests/css/parser/at-invalid-24.css | 1 + tests/css/parser/at-invalid-24.errors | 2 + tests/css/parser/at-invalid-24.ref.css | 0 tests/css/parser/at-invalid-25.css | 1 + tests/css/parser/at-invalid-25.errors | 2 + tests/css/parser/at-invalid-25.ref.css | 0 tests/css/parser/at-invalid-26.css | 1 + tests/css/parser/at-invalid-26.errors | 2 + tests/css/parser/at-invalid-26.ref.css | 0 tests/css/parser/at-invalid-27.css | 1 + tests/css/parser/at-invalid-27.errors | 2 + tests/css/parser/at-invalid-27.ref.css | 0 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-19.ref.css | 0 tests/css/parser/at-valid-20.css | 4 + tests/css/parser/at-valid-20.errors | 1 + tests/css/parser/at-valid-20.ref.css | 0 tests/css/parser/at-valid-21.css | 4 + tests/css/parser/at-valid-21.errors | 1 + tests/css/parser/at-valid-21.ref.css | 0 126 files changed, 241 insertions(+), 94 deletions(-) create mode 100644 tests/css/parser/at-invalid-01.css create mode 100644 tests/css/parser/at-invalid-01.errors create mode 100644 tests/css/parser/at-invalid-01.ref.css create mode 100644 tests/css/parser/at-invalid-02.css create mode 100644 tests/css/parser/at-invalid-02.errors create mode 100644 tests/css/parser/at-invalid-02.ref.css create mode 100644 tests/css/parser/at-invalid-03.css create mode 100644 tests/css/parser/at-invalid-03.errors create mode 100644 tests/css/parser/at-invalid-03.ref.css create mode 100644 tests/css/parser/at-invalid-04.css create mode 100644 tests/css/parser/at-invalid-04.errors create mode 100644 tests/css/parser/at-invalid-04.ref.css create mode 100644 tests/css/parser/at-invalid-05.css create mode 100644 tests/css/parser/at-invalid-05.errors create mode 100644 tests/css/parser/at-invalid-05.ref.css create mode 100644 tests/css/parser/at-invalid-06.css create mode 100644 tests/css/parser/at-invalid-06.errors create mode 100644 tests/css/parser/at-invalid-06.ref.css create mode 100644 tests/css/parser/at-invalid-07.css create mode 100644 tests/css/parser/at-invalid-07.errors create mode 100644 tests/css/parser/at-invalid-07.ref.css create mode 100644 tests/css/parser/at-invalid-08.css create mode 100644 tests/css/parser/at-invalid-08.errors create mode 100644 tests/css/parser/at-invalid-08.ref.css create mode 100644 tests/css/parser/at-invalid-09.css create mode 100644 tests/css/parser/at-invalid-09.errors create mode 100644 tests/css/parser/at-invalid-09.ref.css create mode 100644 tests/css/parser/at-invalid-10.css create mode 100644 tests/css/parser/at-invalid-10.errors create mode 100644 tests/css/parser/at-invalid-10.ref.css create mode 100644 tests/css/parser/at-invalid-11.css create mode 100644 tests/css/parser/at-invalid-11.errors create mode 100644 tests/css/parser/at-invalid-11.ref.css create mode 100644 tests/css/parser/at-invalid-12.css create mode 100644 tests/css/parser/at-invalid-12.errors create mode 100644 tests/css/parser/at-invalid-12.ref.css create mode 100644 tests/css/parser/at-invalid-13.css create mode 100644 tests/css/parser/at-invalid-13.errors create mode 100644 tests/css/parser/at-invalid-13.ref.css create mode 100644 tests/css/parser/at-invalid-14.css create mode 100644 tests/css/parser/at-invalid-14.errors create mode 100644 tests/css/parser/at-invalid-14.ref.css create mode 100644 tests/css/parser/at-invalid-15.css create mode 100644 tests/css/parser/at-invalid-15.errors create mode 100644 tests/css/parser/at-invalid-15.ref.css create mode 100644 tests/css/parser/at-invalid-16.css create mode 100644 tests/css/parser/at-invalid-16.errors create mode 100644 tests/css/parser/at-invalid-16.ref.css create mode 100644 tests/css/parser/at-invalid-17.css create mode 100644 tests/css/parser/at-invalid-17.errors create mode 100644 tests/css/parser/at-invalid-17.ref.css create mode 100644 tests/css/parser/at-invalid-18.css create mode 100644 tests/css/parser/at-invalid-18.errors create mode 100644 tests/css/parser/at-invalid-18.ref.css create mode 100644 tests/css/parser/at-invalid-19.css create mode 100644 tests/css/parser/at-invalid-19.errors create mode 100644 tests/css/parser/at-invalid-19.ref.css create mode 100644 tests/css/parser/at-invalid-20.css create mode 100644 tests/css/parser/at-invalid-20.errors create mode 100644 tests/css/parser/at-invalid-20.ref.css create mode 100644 tests/css/parser/at-invalid-21.css create mode 100644 tests/css/parser/at-invalid-21.errors create mode 100644 tests/css/parser/at-invalid-21.ref.css create mode 100644 tests/css/parser/at-invalid-22.css create mode 100644 tests/css/parser/at-invalid-22.errors create mode 100644 tests/css/parser/at-invalid-22.ref.css create mode 100644 tests/css/parser/at-invalid-23.css create mode 100644 tests/css/parser/at-invalid-23.errors create mode 100644 tests/css/parser/at-invalid-23.ref.css create mode 100644 tests/css/parser/at-invalid-24.css create mode 100644 tests/css/parser/at-invalid-24.errors create mode 100644 tests/css/parser/at-invalid-24.ref.css create mode 100644 tests/css/parser/at-invalid-25.css create mode 100644 tests/css/parser/at-invalid-25.errors create mode 100644 tests/css/parser/at-invalid-25.ref.css create mode 100644 tests/css/parser/at-invalid-26.css create mode 100644 tests/css/parser/at-invalid-26.errors create mode 100644 tests/css/parser/at-invalid-26.ref.css create mode 100644 tests/css/parser/at-invalid-27.css create mode 100644 tests/css/parser/at-invalid-27.errors create mode 100644 tests/css/parser/at-invalid-27.ref.css create mode 100644 tests/css/parser/at-valid-01.css create mode 100644 tests/css/parser/at-valid-01.ref.css create mode 100644 tests/css/parser/at-valid-02.css create mode 100644 tests/css/parser/at-valid-02.ref.css create mode 100644 tests/css/parser/at-valid-03.css create mode 100644 tests/css/parser/at-valid-03.ref.css create mode 100644 tests/css/parser/at-valid-04.css create mode 100644 tests/css/parser/at-valid-04.ref.css create mode 100644 tests/css/parser/at-valid-05.css create mode 100644 tests/css/parser/at-valid-05.ref.css create mode 100644 tests/css/parser/at-valid-06.css create mode 100644 tests/css/parser/at-valid-06.ref.css create mode 100644 tests/css/parser/at-valid-07.css create mode 100644 tests/css/parser/at-valid-08.css create mode 100644 tests/css/parser/at-valid-08.ref.css create mode 100644 tests/css/parser/at-valid-09.css create mode 100644 tests/css/parser/at-valid-09.ref.css create mode 100644 tests/css/parser/at-valid-10.css create mode 100644 tests/css/parser/at-valid-10.ref.css create mode 100644 tests/css/parser/at-valid-11.css create mode 100644 tests/css/parser/at-valid-11.ref.css create mode 100644 tests/css/parser/at-valid-12.css create mode 100644 tests/css/parser/at-valid-12.ref.css create mode 100644 tests/css/parser/at-valid-13.css create mode 100644 tests/css/parser/at-valid-13.ref.css create mode 100644 tests/css/parser/at-valid-14.css create mode 100644 tests/css/parser/at-valid-14.ref.css create mode 100644 tests/css/parser/at-valid-15.css create mode 100644 tests/css/parser/at-valid-15.ref.css create mode 100644 tests/css/parser/at-valid-16.css create mode 100644 tests/css/parser/at-valid-16.ref.css create mode 100644 tests/css/parser/at-valid-17.css create mode 100644 tests/css/parser/at-valid-18.css create mode 100644 tests/css/parser/at-valid-18.ref.css create mode 100644 tests/css/parser/at-valid-19.css create mode 100644 tests/css/parser/at-valid-19.errors create mode 100644 tests/css/parser/at-valid-19.ref.css create mode 100644 tests/css/parser/at-valid-20.css create mode 100644 tests/css/parser/at-valid-20.errors create mode 100644 tests/css/parser/at-valid-20.ref.css create mode 100644 tests/css/parser/at-valid-21.css create mode 100644 tests/css/parser/at-valid-21.errors create mode 100644 tests/css/parser/at-valid-21.ref.css diff --git a/gtk/tests/stylecontext.c b/gtk/tests/stylecontext.c index f68128ebe8..cd5f30b95d 100644 --- a/gtk/tests/stylecontext.c +++ b/gtk/tests/stylecontext.c @@ -18,99 +18,6 @@ test_parse_empty (void) g_object_unref (provider); } -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 \"n\" { \"move-current\" (next) }; };", - "@binding-set gtk-emacs-text-view {\n" - " bind \"u\" { \"move-cursor\" (paragraph-ends, -1, 0)\n" - " \"delete-from-cursor\" (paragraph-ends, 1) };\n" - "};", - "@binding-set test {\n" - " bind \"space\" { \"set-anchor\" () };\n" - " unbind \"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) { @@ -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 27d2ac0e66..47dc014b2a 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 0000000000..4471b63794 --- /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 0000000000..1bb2528f7c --- /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 0000000000..e69de29bb2 diff --git a/tests/css/parser/at-invalid-02.css b/tests/css/parser/at-invalid-02.css new file mode 100644 index 0000000000..d3f937821c --- /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 0000000000..9cf27d4b06 --- /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 0000000000..e69de29bb2 diff --git a/tests/css/parser/at-invalid-03.css b/tests/css/parser/at-invalid-03.css new file mode 100644 index 0000000000..36e809e41e --- /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 0000000000..1437e5a2c7 --- /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 0000000000..e69de29bb2 diff --git a/tests/css/parser/at-invalid-04.css b/tests/css/parser/at-invalid-04.css new file mode 100644 index 0000000000..c04f7c357f --- /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 0000000000..dc09c8780f --- /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 0000000000..e69de29bb2 diff --git a/tests/css/parser/at-invalid-05.css b/tests/css/parser/at-invalid-05.css new file mode 100644 index 0000000000..e37b697d63 --- /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 0000000000..3939d209c5 --- /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 0000000000..e69de29bb2 diff --git a/tests/css/parser/at-invalid-06.css b/tests/css/parser/at-invalid-06.css new file mode 100644 index 0000000000..80eb1b6f39 --- /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 0000000000..a21622da42 --- /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 0000000000..e69de29bb2 diff --git a/tests/css/parser/at-invalid-07.css b/tests/css/parser/at-invalid-07.css new file mode 100644 index 0000000000..e86c694b0a --- /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 0000000000..cc515cc26e --- /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 0000000000..e69de29bb2 diff --git a/tests/css/parser/at-invalid-08.css b/tests/css/parser/at-invalid-08.css new file mode 100644 index 0000000000..0918be38f4 --- /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 0000000000..46f6b7ae1e --- /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 0000000000..e69de29bb2 diff --git a/tests/css/parser/at-invalid-09.css b/tests/css/parser/at-invalid-09.css new file mode 100644 index 0000000000..6ba62b4a42 --- /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 0000000000..a2b633961e --- /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 0000000000..e69de29bb2 diff --git a/tests/css/parser/at-invalid-10.css b/tests/css/parser/at-invalid-10.css new file mode 100644 index 0000000000..d1740bd05c --- /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 0000000000..b6f8505ec4 --- /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 0000000000..e69de29bb2 diff --git a/tests/css/parser/at-invalid-11.css b/tests/css/parser/at-invalid-11.css new file mode 100644 index 0000000000..0efc78282f --- /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 0000000000..2a3ab6879a --- /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 0000000000..e69de29bb2 diff --git a/tests/css/parser/at-invalid-12.css b/tests/css/parser/at-invalid-12.css new file mode 100644 index 0000000000..cc51f45901 --- /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 0000000000..4d0bfbc71f --- /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 0000000000..e69de29bb2 diff --git a/tests/css/parser/at-invalid-13.css b/tests/css/parser/at-invalid-13.css new file mode 100644 index 0000000000..790636c988 --- /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 0000000000..a1bf96347d --- /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 0000000000..e69de29bb2 diff --git a/tests/css/parser/at-invalid-14.css b/tests/css/parser/at-invalid-14.css new file mode 100644 index 0000000000..486ed3b9c5 --- /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 0000000000..2ce10f4473 --- /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 0000000000..e69de29bb2 diff --git a/tests/css/parser/at-invalid-15.css b/tests/css/parser/at-invalid-15.css new file mode 100644 index 0000000000..c0d78990cd --- /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 0000000000..c94855a719 --- /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 0000000000..e69de29bb2 diff --git a/tests/css/parser/at-invalid-16.css b/tests/css/parser/at-invalid-16.css new file mode 100644 index 0000000000..5cea89af45 --- /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 0000000000..cb821d90d3 --- /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 0000000000..e69de29bb2 diff --git a/tests/css/parser/at-invalid-17.css b/tests/css/parser/at-invalid-17.css new file mode 100644 index 0000000000..6a0b29075e --- /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 0000000000..0e12961401 --- /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 0000000000..e69de29bb2 diff --git a/tests/css/parser/at-invalid-18.css b/tests/css/parser/at-invalid-18.css new file mode 100644 index 0000000000..32e51eab89 --- /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 0000000000..52e5d54cf5 --- /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 0000000000..e69de29bb2 diff --git a/tests/css/parser/at-invalid-19.css b/tests/css/parser/at-invalid-19.css new file mode 100644 index 0000000000..d297da4941 --- /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 0000000000..1adccb2450 --- /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 0000000000..e69de29bb2 diff --git a/tests/css/parser/at-invalid-20.css b/tests/css/parser/at-invalid-20.css new file mode 100644 index 0000000000..1e2e25f5d3 --- /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 0000000000..075ca994d5 --- /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 0000000000..e69de29bb2 diff --git a/tests/css/parser/at-invalid-21.css b/tests/css/parser/at-invalid-21.css new file mode 100644 index 0000000000..96955d7b93 --- /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 0000000000..3cc8423d55 --- /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 0000000000..e69de29bb2 diff --git a/tests/css/parser/at-invalid-22.css b/tests/css/parser/at-invalid-22.css new file mode 100644 index 0000000000..c5cd8a3fcc --- /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 0000000000..8aa742077e --- /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 0000000000..e69de29bb2 diff --git a/tests/css/parser/at-invalid-23.css b/tests/css/parser/at-invalid-23.css new file mode 100644 index 0000000000..4ecc50c09a --- /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 0000000000..a2dbe8dbb0 --- /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 0000000000..e69de29bb2 diff --git a/tests/css/parser/at-invalid-24.css b/tests/css/parser/at-invalid-24.css new file mode 100644 index 0000000000..4ecc50c09a --- /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 0000000000..717e6b1fd1 --- /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 0000000000..e69de29bb2 diff --git a/tests/css/parser/at-invalid-25.css b/tests/css/parser/at-invalid-25.css new file mode 100644 index 0000000000..94123fbe03 --- /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 0000000000..3f1ad85d24 --- /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 0000000000..e69de29bb2 diff --git a/tests/css/parser/at-invalid-26.css b/tests/css/parser/at-invalid-26.css new file mode 100644 index 0000000000..0ea47d61b3 --- /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 0000000000..bbe976361d --- /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 0000000000..e69de29bb2 diff --git a/tests/css/parser/at-invalid-27.css b/tests/css/parser/at-invalid-27.css new file mode 100644 index 0000000000..b0c81e113e --- /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 0000000000..e15ca4864c --- /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 0000000000..e69de29bb2 diff --git a/tests/css/parser/at-valid-01.css b/tests/css/parser/at-valid-01.css new file mode 100644 index 0000000000..0628b895ad --- /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 0000000000..d6caa9903f --- /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 0000000000..1a828490f9 --- /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 0000000000..d6caa9903f --- /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 0000000000..c652f4e389 --- /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 0000000000..d6caa9903f --- /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 0000000000..d59e12b163 --- /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 0000000000..d6caa9903f --- /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 0000000000..3a50fbc43a --- /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 0000000000..d6caa9903f --- /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 0000000000..81c788f5a2 --- /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 0000000000..9a713d3a74 --- /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 0000000000..0b03a93b4e --- /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 0000000000..0454e0a90d --- /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 0000000000..6f6d0ee13c --- /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 0000000000..06882209be --- /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 0000000000..4eac5161ed --- /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 0000000000..6ea6b962b8 --- /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 0000000000..ce6c4e2790 --- /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 0000000000..db9626914a --- /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 0000000000..02962b8de0 --- /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 0000000000..b4f20ce1f2 --- /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 0000000000..f6b40c2f80 --- /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 0000000000..836b77aedc --- /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 0000000000..6bb409631e --- /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 0000000000..843ea0308f --- /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 0000000000..1cf85d7752 --- /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 0000000000..9546c5b932 --- /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 0000000000..56e909acdc --- /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 0000000000..cc36511c6d --- /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 0000000000..4ca61c79af --- /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 0000000000..15af74fe8d --- /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 0000000000..d2d0f6ef19 --- /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 0000000000..3bae68da2d --- /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 0000000000..026aad235c --- /dev/null +++ b/tests/css/parser/at-valid-19.css @@ -0,0 +1 @@ +@binding-set gtk-emacs-menu { bind "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 0000000000..8c865f145e --- /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 0000000000..e69de29bb2 diff --git a/tests/css/parser/at-valid-20.css b/tests/css/parser/at-valid-20.css new file mode 100644 index 0000000000..e2ac94d67f --- /dev/null +++ b/tests/css/parser/at-valid-20.css @@ -0,0 +1,4 @@ +@binding-set gtk-emacs-text-view { + bind "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 0000000000..b404d39704 --- /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 0000000000..e69de29bb2 diff --git a/tests/css/parser/at-valid-21.css b/tests/css/parser/at-valid-21.css new file mode 100644 index 0000000000..d4933bbcc2 --- /dev/null +++ b/tests/css/parser/at-valid-21.css @@ -0,0 +1,4 @@ +@binding-set test { + bind "space" { "set-anchor" () }; + unbind "v"; +}; diff --git a/tests/css/parser/at-valid-21.errors b/tests/css/parser/at-valid-21.errors new file mode 100644 index 0000000000..1bd8d5b004 --- /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 0000000000..e69de29bb2