[Xfce4-commits] <midori:master> Fix sokoke_prefetch_uri arguments in magic URI test
Christian Dywan
noreply at xfce.org
Thu Jul 21 18:20:01 CEST 2011
Updating branch refs/heads/master
to cf4499f54bd8c0df4963bd53bced1421f92162d8 (commit)
from 9f99771db1cecf2c73fe78ba8d3cf871581d289b (commit)
commit cf4499f54bd8c0df4963bd53bced1421f92162d8
Author: Paweł Forysiuk <tuxator at o2.pl>
Date: Thu Jul 21 18:04:21 2011 +0200
Fix sokoke_prefetch_uri arguments in magic URI test
tests/magic-uri.c | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/tests/magic-uri.c b/tests/magic-uri.c
index 2f7f4ed..5ea4acc 100644
--- a/tests/magic-uri.c
+++ b/tests/magic-uri.c
@@ -258,18 +258,18 @@ magic_uri_format (void)
static void
magic_uri_prefetch (void)
{
- g_assert (!sokoke_prefetch_uri (NULL, NULL, NULL));
- g_assert (sokoke_prefetch_uri ("http://google.com", NULL, NULL));
- g_assert (sokoke_prefetch_uri ("http://google.com", NULL, NULL));
- g_assert (sokoke_prefetch_uri ("http://googlecom", NULL, NULL));
- g_assert (sokoke_prefetch_uri ("http://1kino.com", NULL, NULL));
- g_assert (sokoke_prefetch_uri ("http://", NULL, NULL));
- g_assert (!sokoke_prefetch_uri ("http:/", NULL, NULL));
- g_assert (!sokoke_prefetch_uri ("http", NULL, NULL));
- g_assert (!sokoke_prefetch_uri ("ftp://ftphost.org", NULL, NULL));
- g_assert (!sokoke_prefetch_uri ("http://10.0.0.1", NULL, NULL));
- g_assert (!sokoke_prefetch_uri ("about:blank", NULL, NULL));
- g_assert (!sokoke_prefetch_uri ("javascript: alert()", NULL, NULL));
+ g_assert (!sokoke_prefetch_uri (NULL, NULL, NULL, NULL));
+ g_assert (sokoke_prefetch_uri (NULL, "http://google.com", NULL, NULL));
+ g_assert (sokoke_prefetch_uri (NULL, "http://google.com", NULL, NULL));
+ g_assert (sokoke_prefetch_uri (NULL, "http://googlecom", NULL, NULL));
+ g_assert (sokoke_prefetch_uri (NULL, "http://1kino.com", NULL, NULL));
+ g_assert (sokoke_prefetch_uri (NULL, "http://", NULL, NULL));
+ g_assert (!sokoke_prefetch_uri (NULL, "http:/", NULL, NULL));
+ g_assert (!sokoke_prefetch_uri (NULL, "http", NULL, NULL));
+ g_assert (!sokoke_prefetch_uri (NULL, "ftp://ftphost.org", NULL, NULL));
+ g_assert (!sokoke_prefetch_uri (NULL, "http://10.0.0.1", NULL, NULL));
+ g_assert (!sokoke_prefetch_uri (NULL, "about:blank", NULL, NULL));
+ g_assert (!sokoke_prefetch_uri (NULL, "javascript: alert()", NULL, NULL));
}
int
More information about the Xfce4-commits
mailing list