aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ephy-test-utils.h
diff options
context:
space:
mode:
authorManuel Rego Casasnovas <rego@igalia.com>2013-03-12 21:18:43 +0800
committerXan Lopez <xan@igalia.com>2013-03-13 04:02:35 +0800
commit2541eed4d1dfda432e6663fdaab48081c9fef38c (patch)
tree5d7319fd46ad797ab3765bb161e8d49bc2d4b990 /tests/ephy-test-utils.h
parent207ed7842e6f7d9be1bed66c3e630aa4bcaf7df8 (diff)
downloadgsoc2013-epiphany-2541eed4d1dfda432e6663fdaab48081c9fef38c.tar.gz
gsoc2013-epiphany-2541eed4d1dfda432e6663fdaab48081c9fef38c.tar.zst
gsoc2013-epiphany-2541eed4d1dfda432e6663fdaab48081c9fef38c.zip
Fix EphyShell tests in WK2 waiting until views are loaded
/src/ephy-shell/tab_load and /src/ephy-shell/tab_from_external tests were failing because of the same issue than session tests. We were not waiting till the views reach the committed load status in order to check the address. https://bugzilla.gnome.org/show_bug.cgi?id=695646
Diffstat (limited to 'tests/ephy-test-utils.h')
-rw-r--r--tests/ephy-test-utils.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ephy-test-utils.h b/tests/ephy-test-utils.h
index afd05f145..66a9f4450 100644
--- a/tests/ephy-test-utils.h
+++ b/tests/ephy-test-utils.h
@@ -24,6 +24,7 @@
#ifndef EPHY_TEST_UTILS_H
#define EPHY_TEST_UTILS_H
+#include "ephy-embed.h"
#include "ephy-web-view.h"
#include <glib.h>
@@ -35,10 +36,17 @@ guint ephy_test_utils_get_web_view_ready_counter (void);
void ephy_test_utils_check_ephy_web_view_address (EphyWebView *view,
const gchar *address);
+void ephy_test_utils_check_ephy_embed_address (EphyEmbed *embed,
+ const gchar *address);
+
GMainLoop* ephy_test_utils_setup_ensure_web_views_are_loaded (void);
void ephy_test_utils_ensure_web_views_are_loaded (GMainLoop *loop);
+GMainLoop* ephy_test_utils_setup_wait_until_load_is_committed (EphyWebView *view);
+
+void ephy_test_utils_wait_until_load_is_committed (GMainLoop *loop);
+
G_END_DECLS
#endif