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),
//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",
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);
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",