diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2017-03-27 12:24:37 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2017-03-27 12:24:37 +0100 |
commit | 1cced51440e550f2965538b8a4f72c514eca09b6 (patch) | |
tree | 0d3214e408b1fdc870f9bf3fe5b8c711c4003472 /test | |
parent | 8e96e9bc27f332cf41589d97687f5cafbfda06c5 (diff) | |
download | netsurf-1cced51440e550f2965538b8a4f72c514eca09b6.tar.gz netsurf-1cced51440e550f2965538b8a4f72c514eca09b6.tar.bz2 |
Tests: Add tests for file: URL credentials and host handling.
Diffstat (limited to 'test')
-rw-r--r-- | test/nsurl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/nsurl.c b/test/nsurl.c index 21b8c01de..7e43a6d6c 100644 --- a/test/nsurl.c +++ b/test/nsurl.c @@ -136,6 +136,12 @@ static const struct test_pairs create_tests[] = { { "file:////", "file:////" }, { "file://///", "file://///" }, + { "file://localhost/", "file:///" }, + { "file://foobar/", "file:///" }, + { "file://foobar", "file:///" }, + { "file:///foobar", "file:///foobar" }, + { "file://tlsa@foo/", "file:///" }, + /* test case insensitivity */ { "HTTP://a/b", "http://a/b" }, { "ftp://a/b", "ftp://a/b" }, |