[gtk+] tests: Move empty css parser test to new CSS tests
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] tests: Move empty css parser test to new CSS tests
- Date: Wed, 20 Jul 2011 00:53:19 +0000 (UTC)
commit 75a43bb40cf1e7dca52e30172cc07e66e183f4f5
Author: Benjamin Otte <otte redhat com>
Date: Wed Jul 20 02:34:02 2011 +0200
tests: Move empty css parser test to new CSS tests
gtk/tests/stylecontext.c | 19 -------------------
tests/css/parser/Makefile.am | 1 +
2 files changed, 1 insertions(+), 19 deletions(-)
---
diff --git a/gtk/tests/stylecontext.c b/gtk/tests/stylecontext.c
index cd5f30b..13fb29f 100644
--- a/gtk/tests/stylecontext.c
+++ b/gtk/tests/stylecontext.c
@@ -1,24 +1,6 @@
#include <gtk/gtk.h>
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)
{
GtkCssProvider *provider;
@@ -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 47dc014..86f1f0e 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 0000000..e69de29
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]