aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/ephy-session-test.c2
-rw-r--r--tests/ephy-shell-test.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/ephy-session-test.c b/tests/ephy-session-test.c
index 57b29fd2b..55454b25c 100644
--- a/tests/ephy-session-test.c
+++ b/tests/ephy-session-test.c
@@ -174,6 +174,8 @@ main (int argc, char *argv[])
_ephy_shell_create_instance (EPHY_EMBED_SHELL_MODE_TEST);
g_assert (ephy_shell);
+ g_application_register (G_APPLICATION (ephy_shell), NULL, NULL);
+
g_test_add_func ("/src/ephy-session/load",
test_ephy_session_load);
diff --git a/tests/ephy-shell-test.c b/tests/ephy-shell-test.c
index 84626ae26..8518de115 100644
--- a/tests/ephy-shell-test.c
+++ b/tests/ephy-shell-test.c
@@ -332,13 +332,14 @@ main (int argc, char *argv[])
ephy_debug_init ();
ephy_embed_prefs_init ();
- _ephy_shell_create_instance (EPHY_EMBED_SHELL_MODE_PRIVATE);
-
if (!ephy_file_helpers_init (NULL, EPHY_FILE_HELPERS_PRIVATE_PROFILE | EPHY_FILE_HELPERS_ENSURE_EXISTS, NULL)) {
g_debug ("Something wrong happened with ephy_file_helpers_init()");
return -1;
}
+ _ephy_shell_create_instance (EPHY_EMBED_SHELL_MODE_PRIVATE);
+ g_application_register (G_APPLICATION (ephy_shell), NULL, NULL);
+
g_test_add_func ("/src/ephy-shell/basic_embeds",
test_ephy_shell_basic_embeds);