Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
tests: Move empty css parser test to new CSS tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Otte committed Jul 20, 2011
1 parent 15674c5 commit 75a43bb
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 19 deletions.
19 changes: 0 additions & 19 deletions gtk/tests/stylecontext.c
@@ -1,23 +1,5 @@
#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)
{
Expand Down Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions tests/css/parser/Makefile.am
Expand Up @@ -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 \
Expand Down
Empty file added tests/css/parser/empty.css
Empty file.

0 comments on commit 75a43bb

Please sign in to comment.