summaryrefslogtreecommitdiff
path: root/test/nsurl.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2017-03-27 12:15:11 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2017-03-27 12:15:11 +0100
commit13a2ac7c08161868987c929a8b66462fe752f2c7 (patch)
tree68849a85ca1613d30dd8f0b911ead8482e79906f /test/nsurl.c
parent0e62d45006195808107295cd9a2d2c83fed504ec (diff)
downloadnetsurf-13a2ac7c08161868987c929a8b66462fe752f2c7.tar.gz
netsurf-13a2ac7c08161868987c929a8b66462fe752f2c7.tar.bz2
Tests: Add more file scheme URL parsing tests.
Diffstat (limited to 'test/nsurl.c')
-rw-r--r--test/nsurl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/nsurl.c b/test/nsurl.c
index 389f2b7db..21b8c01de 100644
--- a/test/nsurl.c
+++ b/test/nsurl.c
@@ -129,6 +129,13 @@ static const struct test_pairs create_tests[] = {
{ "mailto:u@a", "mailto:u@a" },
{ "mailto:@a", "mailto:a" },
+ { "file:///", "file:///" },
+ { "file://", "file:///" },
+ { "file:/", "file:///" },
+ { "file:", "file:///" },
+ { "file:////", "file:////" },
+ { "file://///", "file://///" },
+
/* test case insensitivity */
{ "HTTP://a/b", "http://a/b" },
{ "ftp://a/b", "ftp://a/b" },