diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ephy-shell-test.c | 4 | ||||
-rw-r--r-- | tests/ephy-web-view-test.c | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/ephy-shell-test.c b/tests/ephy-shell-test.c index 75a33e2aa..84626ae26 100644 --- a/tests/ephy-shell-test.c +++ b/tests/ephy-shell-test.c @@ -284,6 +284,9 @@ test_ephy_shell_tab_no_history () EphyEmbed *embed2; EphyEmbed *embed3; +#ifdef HAVE_WEBKIT2 + /* TODO: BackForwardList */ +#else WebKitWebBackForwardList *bflist; WebKitWebHistoryItem *item; @@ -312,6 +315,7 @@ test_ephy_shell_tab_no_history () g_assert_cmpint (webkit_web_back_forward_list_get_back_length (bflist), ==, 0); gtk_widget_destroy (window); +#endif } int diff --git a/tests/ephy-web-view-test.c b/tests/ephy-web-view-test.c index bd0f2f0ce..31b6f78f8 100644 --- a/tests/ephy-web-view-test.c +++ b/tests/ephy-web-view-test.c @@ -63,6 +63,9 @@ server_callback (SoupServer *server, soup_message_body_complete (msg->response_body); } +#ifdef HAVE_WEBKIT2 +/* TODO: loader */ +#else static void notify_load_status_cb (WebKitWebView *view, GParamSpec *spec, GMainLoop *loop) { @@ -86,6 +89,7 @@ notify_load_status_cb (WebKitWebView *view, GParamSpec *spec, GMainLoop *loop) g_free (expected_url); g_main_loop_quit (loop); } +#endif typedef struct { const char *url; @@ -157,8 +161,12 @@ test_ephy_web_view_load_url () g_test_message ("[%s] \t-> %s", test.url, test.expected_url); +#ifdef HAVE_WEBKIT2 + /* TODO: loader */ +#else g_signal_connect (view, "notify::load-status", G_CALLBACK (notify_load_status_cb), loop); +#endif g_main_loop_run (loop); g_main_loop_unref (loop); |