[evolution/wip/webkit2] Listen for WebKitWebView::web-process-crashed during the tests



commit 370e01686bdd9a81adabd7c90c51066aa12efb22
Author: Milan Crha <mcrha redhat com>
Date:   Wed Jun 29 15:18:32 2016 +0200

    Listen for WebKitWebView::web-process-crashed during the tests

 e-util/test-html-editor-units-utils.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/e-util/test-html-editor-units-utils.c b/e-util/test-html-editor-units-utils.c
index 0dc9d18..47690e4 100644
--- a/e-util/test-html-editor-units-utils.c
+++ b/e-util/test-html-editor-units-utils.c
@@ -116,6 +116,15 @@ undo_content_test (TestFixture *fixture,
        return TRUE;
 }
 
+static gboolean
+test_utils_web_process_crashed_cb (WebKitWebView *web_view,
+                                  gpointer user_data)
+{
+       g_warning ("%s:", G_STRFUNC);
+
+       return FALSE;
+}
+
 void
 test_utils_fixture_set_up (TestFixture *fixture,
                           gconstpointer user_data)
@@ -156,6 +165,8 @@ test_utils_fixture_set_up (TestFixture *fixture,
 
        async_data = test_utils_async_call_prepare ();
 
+       g_signal_connect (cnt_editor, "web-process-crashed",
+               G_CALLBACK (test_utils_web_process_crashed_cb), NULL);
        g_signal_connect_swapped (cnt_editor, "notify::web-extension",
                G_CALLBACK (test_utils_async_call_finish), async_data);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]