Fix inconsistency in test initializations
This commit is contained in:
parent
e5da45a40e
commit
35dfebd1c6
4 changed files with 10 additions and 4 deletions
|
@ -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),
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue