Add a dummy cookie jar for extension unit test

In a real environment there is always one and extensions
rely on finding a cookie jar.
This commit is contained in:
Christian Dywan 2011-01-16 13:52:07 +01:00
parent 355ae063a6
commit f5927ec5d4

View file

@ -237,6 +237,8 @@ main (int argc,
g_test_init (&argc, &argv, NULL);
gtk_init_check (&argc, &argv);
if (!g_thread_supported ()) g_thread_init (NULL);
soup_session_add_feature_by_type (webkit_get_default_session (),
SOUP_TYPE_COOKIE_JAR);
g_test_add_func ("/extensions/create", extension_create);
g_test_add_func ("/extensions/settings", extension_settings);