[epiphany/flatpak-ci: 5/6] Attempt to fix location entry test



commit 0e97c8736b745307414d35f7dddbaf28c6a397fb
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Mon Jul 16 11:44:52 2018 -0500

    Attempt to fix location entry test
    
    It's no longer a GtkEntry

 tests/ephy-location-entry-test.c | 5 +++--
 1 file 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);
 }
 


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