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:
parent
355ae063a6
commit
f5927ec5d4
1 changed files with 2 additions and 0 deletions
|
@ -237,6 +237,8 @@ main (int argc,
|
||||||
g_test_init (&argc, &argv, NULL);
|
g_test_init (&argc, &argv, NULL);
|
||||||
gtk_init_check (&argc, &argv);
|
gtk_init_check (&argc, &argv);
|
||||||
if (!g_thread_supported ()) g_thread_init (NULL);
|
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/create", extension_create);
|
||||||
g_test_add_func ("/extensions/settings", extension_settings);
|
g_test_add_func ("/extensions/settings", extension_settings);
|
||||||
|
|
Loading…
Reference in a new issue