mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
tests: Move empty css parser test to new CSS tests
This commit is contained in:
parent
15674c5bd4
commit
75a43bb40c
@ -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)
|
||||
{
|
||||
@ -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);
|
||||
|
@ -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 \
|
||||
|
0
tests/css/parser/empty.css
Normal file
0
tests/css/parser/empty.css
Normal file
Loading…
Reference in New Issue
Block a user