aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2012-11-06 19:19:59 +0800
committerBastien Nocera <hadess@hadess.net>2012-12-10 15:46:47 +0800
commit4666852818b260e239b33092678fcad78a1f031c (patch)
tree31d5cc42cd6f28c3b2ba509f5826b36d9658b16f /tests
parent52b87722689ed8a124b6cafcf51f7309b7c7104c (diff)
downloadgsoc2013-epiphany-4666852818b260e239b33092678fcad78a1f031c.tar
gsoc2013-epiphany-4666852818b260e239b33092678fcad78a1f031c.tar.gz
gsoc2013-epiphany-4666852818b260e239b33092678fcad78a1f031c.tar.bz2
gsoc2013-epiphany-4666852818b260e239b33092678fcad78a1f031c.tar.lz
gsoc2013-epiphany-4666852818b260e239b33092678fcad78a1f031c.tar.xz
gsoc2013-epiphany-4666852818b260e239b33092678fcad78a1f031c.tar.zst
gsoc2013-epiphany-4666852818b260e239b33092678fcad78a1f031c.zip
lib: Remove unused EphySearchEntry widget
https://bugzilla.gnome.org/show_bug.cgi?id=687744
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am4
-rw-r--r--tests/ephy-search-entry-test.c75
2 files changed, 0 insertions, 79 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 3fd1000ea..992547eb7 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -11,7 +11,6 @@ noinst_PROGRAMS = \
test-ephy-history \
test-ephy-location-entry \
test-ephy-migration \
- test-ephy-search-entry \
test-ephy-session \
test-ephy-shell \
test-ephy-snapshot-service \
@@ -150,9 +149,6 @@ test_ephy_location_entry_SOURCES = \
test_ephy_migration_SOURCES = \
ephy-migration-test.c
-test_ephy_search_entry_SOURCES = \
- ephy-search-entry-test.c
-
test_ephy_session_SOURCES = \
ephy-session-test.c \
$(top_builddir)/src/epiphany-resources.c \
diff --git a/tests/ephy-search-entry-test.c b/tests/ephy-search-entry-test.c
deleted file mode 100644
index f2eb5bccd..000000000
--- a/tests/ephy-search-entry-test.c
+++ /dev/null
@@ -1,75 +0,0 @@
-/* vim: set sw=2 ts=2 sts=2 et: */
-/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/*
- * ephy-search-entry-test.c
- * This file is part of Epiphany
- *
- * Copyright © 2008 - Diego Escalante Urrelo
- *
- * Epiphany is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * Epiphany is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Epiphany; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor,
- * Boston, MA 02110-1301 USA
- */
-
-#include "config.h"
-#include "ephy-search-entry.h"
-#include <glib.h>
-#include <gtk/gtk.h>
-
-static void
-test_entry_new (void)
-{
-
- EphySearchEntry *entry;
- entry = EPHY_SEARCH_ENTRY (ephy_search_entry_new ());
-
- g_assert (GTK_IS_WIDGET (entry));
- g_assert (GTK_IS_ENTRY (entry));
-}
-
-static void
-test_entry_clear (void)
-{
- const char *set = "test";
- const char *get = NULL;
-
- EphySearchEntry *entry;
- entry = EPHY_SEARCH_ENTRY (ephy_search_entry_new ());
-
- gtk_entry_set_text (GTK_ENTRY (entry), set);
- get = gtk_entry_get_text (GTK_ENTRY (entry));
-
- g_assert_cmpstr (set, ==, get);
-
- /* At this point, the text in the entry is either 'vanilla' or the
- * contents of 'set' char*
- */
- ephy_search_entry_clear (EPHY_SEARCH_ENTRY (entry));
- get = gtk_entry_get_text (GTK_ENTRY (entry));
-
- g_assert_cmpstr ("", ==, get);
-}
-
-int
-main (int argc, char *argv[])
-{
- gtk_test_init (&argc, &argv);
-
- g_test_add_func ("/lib/widgets/ephy-search-entry/new",
- test_entry_new);
- g_test_add_func ("/lib/widgets/ephy-search-entry/clear",
- test_entry_clear);
-
- return g_test_run ();
-}