diff --git a/gtk/tests/stylecontext.c b/gtk/tests/stylecontext.c index cd5f30b95d..13fb29f305 100644 --- a/gtk/tests/stylecontext.c +++ b/gtk/tests/stylecontext.c @@ -1,23 +1,5 @@ #include -static void -test_parse_empty (void) -{ - GtkCssProvider *provider; - GError *error; - gboolean res; - - provider = gtk_css_provider_new (); - error = NULL; - res = gtk_css_provider_load_from_data (provider, "", -1, &error); - - g_assert (res); - g_assert_no_error (error); - g_clear_error (&error); - - g_object_unref (provider); -} - static void test_parse_selectors (void) { @@ -469,7 +451,6 @@ main (int argc, char *argv[]) gtk_init (NULL, NULL); g_test_init (&argc, &argv, NULL); - g_test_add_func ("/style/parse/empty", test_parse_empty); 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 47dc014b2a..86f1f0ee60 100644 --- a/tests/css/parser/Makefile.am +++ b/tests/css/parser/Makefile.am @@ -178,6 +178,7 @@ EXTRA_DIST += \ does-not-exist.css \ does-not-exist.errors \ does-not-exist.ref.css \ + empty.css \ enum.css \ enum.errors \ enum.ref.css \ diff --git a/tests/css/parser/empty.css b/tests/css/parser/empty.css new file mode 100644 index 0000000000..e69de29bb2