[epiphany] ephy-session-test: make tests pass
- From: Xan Lopez <xan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-session-test: make tests pass
- Date: Fri, 22 Feb 2013 01:13:55 +0000 (UTC)
commit 75da5fff3f4489dacf4ded6f012daa06af306709
Author: Xan Lopez <xan igalia com>
Date: Fri Feb 22 02:04:54 2013 +0100
ephy-session-test: make tests pass
We delay session loads until tab map now, which won't happen in the
tests. So take that into account for about: URIs, which are changed to
ephy-about: only during the actual load process.
We should make this work properly before 3.8
tests/ephy-session-test.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/ephy-session-test.c b/tests/ephy-session-test.c
index fb1ec63..01d10aa 100644
--- a/tests/ephy-session-test.c
+++ b/tests/ephy-session-test.c
@@ -94,7 +94,7 @@ test_ephy_session_load (void)
g_assert (embed);
view = ephy_embed_get_web_view (embed);
g_assert (view);
- g_assert_cmpstr (ephy_web_view_get_address (view), ==, "ephy-about:memory");
+ g_assert_cmpstr (ephy_web_view_get_address (view), ==, "about:memory");
ephy_session_clear (session);
}
@@ -190,7 +190,7 @@ test_ephy_session_load_many_windows (void)
g_assert (embed);
view = ephy_embed_get_web_view (embed);
g_assert (view);
- g_assert_cmpstr (ephy_web_view_get_address (view), ==, "ephy-about:epiphany");
+ g_assert_cmpstr (ephy_web_view_get_address (view), ==, "about:epiphany");
}
ephy_session_clear (session);
@@ -224,7 +224,7 @@ open_uris_after_loading_session (const char** uris, int final_num_windows)
g_assert (embed);
view = ephy_embed_get_web_view (embed);
g_assert (view);
- g_assert_cmpstr (ephy_web_view_get_address (view), ==, "ephy-about:epiphany");
+ g_assert_cmpstr (ephy_web_view_get_address (view), ==, "about:epiphany");
}
/* Causing a session load here should not create new windows, since we
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]