summaryrefslogtreecommitdiff
path: root/test/nsurl.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-10-31 22:24:05 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-10-31 22:24:05 +0000
commit30ff09bd83a91b5174ac0898d02f97506d72fdf3 (patch)
tree4efb67e194d2154b28deb3492ed5143c0f9e3a1b /test/nsurl.c
parent3ecf3c1eaf81c833f6ee231871fc0dd0f7d003b1 (diff)
downloadnetsurf-30ff09bd83a91b5174ac0898d02f97506d72fdf3.tar.gz
netsurf-30ff09bd83a91b5174ac0898d02f97506d72fdf3.tar.bz2
More test cases.
svn path=/trunk/netsurf/; revision=13109
Diffstat (limited to 'test/nsurl.c')
-rw-r--r--test/nsurl.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/nsurl.c b/test/nsurl.c
index 6f6a838cc..9a0b9c055 100644
--- a/test/nsurl.c
+++ b/test/nsurl.c
@@ -40,6 +40,20 @@ static const struct test_pairs create_tests[] = {
{ "http://user:pass@www.ns-b.org:8080/hello",
"http://user:pass@www.ns-b.org:8080/hello" },
+ { "http://www.ns-b.org:80/",
+ "http://www.ns-b.org/" },
+ { "http://user@www.ns-b.org:80/hello",
+ "http://user@www.ns-b.org/hello" },
+ { "http://user:pass@www.ns-b.org:80/hello",
+ "http://user:pass@www.ns-b.org/hello" },
+
+ { "http://www.ns-b.org:/",
+ "http://www.ns-b.org/" },
+ { "http://u@www.ns-b.org:/hello",
+ "http://u@www.ns-b.org/hello" },
+ { "http://u:p@www.ns-b.org:/hello",
+ "http://u:p@www.ns-b.org/hello" },
+
{ NULL, NULL }
};