aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2008-12-31 06:33:01 +0800
committerXan Lopez <xan@src.gnome.org>2008-12-31 06:33:01 +0800
commit6191d0ea18b36b108d64edcae7652aa3ec805482 (patch)
treee15c1e75f015c04875b69e8da08310fa7f8c9ee0 /tests
parent48d5d818763a02134170f93b5a0e3ee04ae3fff1 (diff)
downloadgsoc2013-epiphany-6191d0ea18b36b108d64edcae7652aa3ec805482.tar
gsoc2013-epiphany-6191d0ea18b36b108d64edcae7652aa3ec805482.tar.gz
gsoc2013-epiphany-6191d0ea18b36b108d64edcae7652aa3ec805482.tar.bz2
gsoc2013-epiphany-6191d0ea18b36b108d64edcae7652aa3ec805482.tar.lz
gsoc2013-epiphany-6191d0ea18b36b108d64edcae7652aa3ec805482.tar.xz
gsoc2013-epiphany-6191d0ea18b36b108d64edcae7652aa3ec805482.tar.zst
gsoc2013-epiphany-6191d0ea18b36b108d64edcae7652aa3ec805482.zip
Update EphySearchEntry test.
There's no 'internal entry' now. svn path=/trunk/; revision=8654
Diffstat (limited to 'tests')
-rw-r--r--tests/testephysearchentry.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/testephysearchentry.c b/tests/testephysearchentry.c
index 63ddfbe10..fc55b1988 100644
--- a/tests/testephysearchentry.c
+++ b/tests/testephysearchentry.c
@@ -23,7 +23,6 @@
#include "config.h"
#include "ephy-search-entry.h"
-#include "ephy-icon-entry.h"
#include <gtk/gtk.h>
static void
@@ -34,7 +33,7 @@ test_entry_new (void)
entry = EPHY_SEARCH_ENTRY (ephy_search_entry_new ());
g_assert (GTK_IS_WIDGET (entry));
- g_assert (EPHY_IS_ICON_ENTRY (entry));
+ g_assert (GTK_IS_ENTRY (entry));
}
static void
@@ -42,15 +41,12 @@ test_entry_clear (void)
{
const char *set = "test";
const char *get = NULL;
- GtkWidget *internal_entry;
EphySearchEntry *entry;
entry = EPHY_SEARCH_ENTRY (ephy_search_entry_new ());
- internal_entry = ephy_icon_entry_get_entry (EPHY_ICON_ENTRY (entry));
-
- gtk_entry_set_text (GTK_ENTRY (internal_entry), set);
- get = gtk_entry_get_text (GTK_ENTRY (internal_entry));
+ gtk_entry_set_text (GTK_ENTRY (entry), set);
+ get = gtk_entry_get_text (GTK_ENTRY (entry));
g_assert_cmpstr (set, ==, get);
@@ -58,7 +54,7 @@ test_entry_clear (void)
* contents of 'set' char*
*/
ephy_search_entry_clear (EPHY_SEARCH_ENTRY (entry));
- get = gtk_entry_get_text (GTK_ENTRY (internal_entry));
+ get = gtk_entry_get_text (GTK_ENTRY (entry));
g_assert_cmpstr ("", ==, get);
}