diff options
author | Michael Catanzaro <mcatanzaro@igalia.com> | 2018-07-16 11:44:52 -0500 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@posteo.net> | 2018-07-17 01:07:36 +0000 |
commit | 0e97c8736b745307414d35f7dddbaf28c6a397fb (patch) | |
tree | fe0919ebbd30107e3ee7a2e6f9eb4d6f42f2d9c1 | |
parent | d8a7f1e753461fab72b7ffb66d2192167f3aefac (diff) | |
download | epiphany-0e97c8736b745307414d35f7dddbaf28c6a397fb.tar.gz |
Attempt to fix location entry test
It's no longer a GtkEntry
-rw-r--r-- | tests/ephy-location-entry-test.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/ephy-location-entry-test.c b/tests/ephy-location-entry-test.c index bcd6bebaa..c378187a5 100644 --- a/tests/ephy-location-entry-test.c +++ b/tests/ephy-location-entry-test.c @@ -39,9 +39,10 @@ static void test_entry_get_entry (void) { EphyLocationEntry *entry; + entry = EPHY_LOCATION_ENTRY (ephy_location_entry_new ()); - g_assert (GTK_IS_ENTRY (entry)); + g_assert (GTK_IS_ENTRY (ephy_location_entry_get_entry (entry))); } static void @@ -111,7 +112,7 @@ test_entry_can_undo (void) /* Use gtk_* function or otherwise user_changed won't be correctly handled * internally by the location entry (see editable_changed_cb and * block_update) */ - gtk_entry_set_text (GTK_ENTRY (entry), test); + gtk_entry_set_text (GTK_ENTRY (ephy_location_entry_get_entry (entry)), test); g_assert_cmpint (ephy_location_entry_get_can_undo (entry), ==, TRUE); } |