Fix sokoke_prefetch_uri arguments in magic URI test
This commit is contained in:
parent
9f99771db1
commit
cf4499f54b
1 changed files with 12 additions and 12 deletions
|
@ -258,18 +258,18 @@ magic_uri_format (void)
|
||||||
static void
|
static void
|
||||||
magic_uri_prefetch (void)
|
magic_uri_prefetch (void)
|
||||||
{
|
{
|
||||||
g_assert (!sokoke_prefetch_uri (NULL, NULL, NULL));
|
g_assert (!sokoke_prefetch_uri (NULL, NULL, NULL, NULL));
|
||||||
g_assert (sokoke_prefetch_uri ("http://google.com", NULL, NULL));
|
g_assert (sokoke_prefetch_uri (NULL, "http://google.com", NULL, NULL));
|
||||||
g_assert (sokoke_prefetch_uri ("http://google.com", NULL, NULL));
|
g_assert (sokoke_prefetch_uri (NULL, "http://google.com", NULL, NULL));
|
||||||
g_assert (sokoke_prefetch_uri ("http://googlecom", NULL, NULL));
|
g_assert (sokoke_prefetch_uri (NULL, "http://googlecom", NULL, NULL));
|
||||||
g_assert (sokoke_prefetch_uri ("http://1kino.com", NULL, NULL));
|
g_assert (sokoke_prefetch_uri (NULL, "http://1kino.com", NULL, NULL));
|
||||||
g_assert (sokoke_prefetch_uri ("http://", NULL, NULL));
|
g_assert (sokoke_prefetch_uri (NULL, "http://", NULL, NULL));
|
||||||
g_assert (!sokoke_prefetch_uri ("http:/", NULL, NULL));
|
g_assert (!sokoke_prefetch_uri (NULL, "http:/", NULL, NULL));
|
||||||
g_assert (!sokoke_prefetch_uri ("http", NULL, NULL));
|
g_assert (!sokoke_prefetch_uri (NULL, "http", NULL, NULL));
|
||||||
g_assert (!sokoke_prefetch_uri ("ftp://ftphost.org", NULL, NULL));
|
g_assert (!sokoke_prefetch_uri (NULL, "ftp://ftphost.org", NULL, NULL));
|
||||||
g_assert (!sokoke_prefetch_uri ("http://10.0.0.1", NULL, NULL));
|
g_assert (!sokoke_prefetch_uri (NULL, "http://10.0.0.1", NULL, NULL));
|
||||||
g_assert (!sokoke_prefetch_uri ("about:blank", NULL, NULL));
|
g_assert (!sokoke_prefetch_uri (NULL, "about:blank", NULL, NULL));
|
||||||
g_assert (!sokoke_prefetch_uri ("javascript: alert()", NULL, NULL));
|
g_assert (!sokoke_prefetch_uri (NULL, "javascript: alert()", NULL, NULL));
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in a new issue