Fix inconsistency in test initializations

This commit is contained in:
Christian Dywan 2012-08-09 01:01:44 +02:00
parent e5da45a40e
commit 35dfebd1c6
4 changed files with 10 additions and 4 deletions

View file

@ -3688,6 +3688,9 @@ _action_caret_browsing_activate (GtkAction* action,
gint response;
GtkWidget* dialog;
if (!gtk_widget_get_visible (GTK_WIDGET (browser)))
return;
if (!katze_object_get_boolean (browser->settings, "enable-caret-browsing"))
{
dialog = gtk_message_dialog_new (GTK_WINDOW (browser),

View file

@ -195,6 +195,7 @@ main (int argc,
//TestParameters default_params = {":memory:", TRUE, NULL, NULL};
TestParameters default_params = {":memory:", FALSE, NULL, NULL};
g_test_init (&argc, &argv, NULL);
midori_app_setup (&argc, &argv, NULL, NULL);
g_test_add ("/bookmarks/simple test",

View file

@ -130,11 +130,12 @@ int
main (int argc,
char** argv)
{
g_object_set_data (G_OBJECT (webkit_get_default_session ()),
"midori-session-initialized", (void*)1);
g_test_init (&argc, &argv, NULL);
midori_app_setup (&argc, &argv, NULL, NULL);
g_object_set_data (G_OBJECT (webkit_get_default_session ()),
"midori-session-initialized", (void*)1);
g_test_add_func ("/browser/create", browser_create);
g_test_add_func ("/browser/tooltips", browser_tooltips);
g_test_add_func ("/browser/site_data", browser_site_data);

View file

@ -187,11 +187,12 @@ int
main (int argc,
char** argv)
{
g_object_set_data (G_OBJECT (webkit_get_default_session ()),
"midori-session-initialized", (void*)1);
g_test_init (&argc, &argv, NULL);
midori_app_setup (&argc, &argv, NULL, NULL);
g_object_set_data (G_OBJECT (webkit_get_default_session ()),
"midori-session-initialized", (void*)1);
g_test_add_data_func ("/properties/app",
(gconstpointer)MIDORI_TYPE_APP, properties_type_test);
g_test_add_data_func ("/properties/browser",