~ubuntu-branches/ubuntu/oneiric/midori/oneiric-updates

« back to all changes in this revision

Viewing changes to tests/magic-uri.c

  • Committer: Bazaar Package Importer
  • Author(s): Yves-Alexis Perez
  • Date: 2011-08-02 09:44:09 UTC
  • mfrom: (1.1.17 upstream) (3.3.11 sid)
  • Revision ID: james.westby@ubuntu.com-20110802094409-b0eekdkttqs5a528
Tags: 0.4.0-1
* New upstream release.
* debian/control:
  - bump webkit build-dep to 1.1.17.
  - bump valac build-dep to 0.10.

Show diffs side-by-side

added added

removed removed

Lines of Context:
258
258
static void
259
259
magic_uri_prefetch (void)
260
260
{
261
 
    g_assert (!sokoke_prefetch_uri (NULL, NULL, NULL));
262
 
    g_assert (sokoke_prefetch_uri ("http://google.com", NULL, NULL));
263
 
    g_assert (sokoke_prefetch_uri ("http://google.com", NULL, NULL));
264
 
    g_assert (sokoke_prefetch_uri ("http://googlecom", NULL, NULL));
265
 
    g_assert (sokoke_prefetch_uri ("http://1kino.com", NULL, NULL));
266
 
    g_assert (sokoke_prefetch_uri ("http://", NULL, NULL));
267
 
    g_assert (!sokoke_prefetch_uri ("http:/", NULL, NULL));
268
 
    g_assert (!sokoke_prefetch_uri ("http", NULL, NULL));
269
 
    g_assert (!sokoke_prefetch_uri ("ftp://ftphost.org", NULL, NULL));
270
 
    g_assert (!sokoke_prefetch_uri ("http://10.0.0.1", NULL, NULL));
271
 
    g_assert (!sokoke_prefetch_uri ("about:blank", NULL, NULL));
272
 
    g_assert (!sokoke_prefetch_uri ("javascript: alert()", NULL, NULL));
 
261
    g_assert (!sokoke_prefetch_uri (NULL, NULL, NULL, NULL));
 
262
    g_assert (sokoke_prefetch_uri (NULL, "http://google.com", NULL, NULL));
 
263
    g_assert (sokoke_prefetch_uri (NULL, "http://google.com", NULL, NULL));
 
264
    g_assert (sokoke_prefetch_uri (NULL, "http://googlecom", NULL, NULL));
 
265
    g_assert (sokoke_prefetch_uri (NULL, "http://1kino.com", NULL, NULL));
 
266
    g_assert (sokoke_prefetch_uri (NULL, "http://", NULL, NULL));
 
267
    g_assert (!sokoke_prefetch_uri (NULL, "http:/", NULL, NULL));
 
268
    g_assert (!sokoke_prefetch_uri (NULL, "http", NULL, NULL));
 
269
    g_assert (!sokoke_prefetch_uri (NULL, "ftp://ftphost.org", NULL, NULL));
 
270
    g_assert (!sokoke_prefetch_uri (NULL, "http://10.0.0.1", NULL, NULL));
 
271
    g_assert (!sokoke_prefetch_uri (NULL, "about:blank", NULL, NULL));
 
272
    g_assert (!sokoke_prefetch_uri (NULL, "javascript: alert()", NULL, NULL));
273
273
}
274
274
 
275
275
int