aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ephy-download.c
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <diegoe@igalia.com>2012-01-27 00:53:45 +0800
committerDiego Escalante Urrelo <diegoe@igalia.com>2012-01-31 03:38:17 +0800
commit87b92272f962e04d16c7f156dc736fb421593218 (patch)
tree8f78ae5eb32afaaa2703c69e256482047a14aeef /tests/ephy-download.c
parent9228a79428da8525f1cf937737128be46c7faf57 (diff)
downloadgsoc2013-epiphany-87b92272f962e04d16c7f156dc736fb421593218.tar
gsoc2013-epiphany-87b92272f962e04d16c7f156dc736fb421593218.tar.gz
gsoc2013-epiphany-87b92272f962e04d16c7f156dc736fb421593218.tar.bz2
gsoc2013-epiphany-87b92272f962e04d16c7f156dc736fb421593218.tar.lz
gsoc2013-epiphany-87b92272f962e04d16c7f156dc736fb421593218.tar.xz
gsoc2013-epiphany-87b92272f962e04d16c7f156dc736fb421593218.tar.zst
gsoc2013-epiphany-87b92272f962e04d16c7f156dc736fb421593218.zip
tests: ephy-download: missing ephy_download_start
https://bugzilla.gnome.org/show_bug.cgi?id=668758
Diffstat (limited to 'tests/ephy-download.c')
-rw-r--r--tests/ephy-download.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/ephy-download.c b/tests/ephy-download.c
index 92d0805b4..ac40927b9 100644
--- a/tests/ephy-download.c
+++ b/tests/ephy-download.c
@@ -136,7 +136,6 @@ test_ephy_download_new (Fixture *fixture, gconstpointer data)
g_assert (EPHY_IS_DOWNLOAD (fixture->download));
}
-#if 0
static void
test_ephy_download_new_for_uri (Fixture *fixture, gconstpointer data)
{
@@ -151,6 +150,11 @@ test_ephy_download_new_for_uri (Fixture *fixture, gconstpointer data)
g_signal_connect (G_OBJECT (download), "completed",
G_CALLBACK (completed_cb), fixture);
+ ephy_download_start (download);
+
+ g_object_unref (fixture->download);
+ fixture->download = download;
+
g_main_loop_run (fixture->loop);
}
@@ -160,9 +164,9 @@ test_ephy_download_start (Fixture *fixture, gconstpointer data)
g_signal_connect (G_OBJECT (fixture->download), "completed",
G_CALLBACK (completed_cb), fixture);
+ ephy_download_start (fixture->download);
g_main_loop_run (fixture->loop);
}
-#endif
int
main (int argc, char *argv[])
@@ -192,14 +196,12 @@ main (int argc, char *argv[])
g_test_add ("/embed/ephy-download/new",
Fixture, NULL, fixture_setup,
test_ephy_download_new, fixture_teardown);
-#if 0
g_test_add ("/embed/ephy-download/new_for_uri",
Fixture, NULL, fixture_setup,
test_ephy_download_new_for_uri, fixture_teardown);
g_test_add ("/embed/ephy-download/start",
Fixture, NULL, fixture_setup,
test_ephy_download_start, fixture_teardown);
-#endif
ret = g_test_run ();