diff options
author | isaacs <i@izs.me> | 2011-07-19 20:55:01 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-07-19 20:55:01 +0400 |
commit | dcecfc5f1b417c5e06a8430143ccd9da17a6ae34 (patch) | |
tree | 3f323814a3d59736c5d921ab90ce4e096833c542 /test | |
parent | 87d974bb8f4bc210fd6963901954f57cb6deb3fd (diff) |
Close #1360 url: Allow _ in hostnames.
Diffstat (limited to 'test')
-rw-r--r-- | test/simple/test-url.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/simple/test-url.js b/test/simple/test-url.js index f07edb5cd41..fdf8bde5962 100644 --- a/test/simple/test-url.js +++ b/test/simple/test-url.js @@ -327,8 +327,17 @@ var parseTests = { 'host': 'xn--hgi.ws', 'hostname': 'xn--hgi.ws', 'pathname': '/➡' + }, + 'http://bucket_name.s3.amazonaws.com/image.jpg': { + protocol: 'http:', + slashes: true, + host: 'bucket_name.s3.amazonaws.com', + hostname: 'bucket_name.s3.amazonaws.com', + pathname: '/image.jpg', + href: 'http://bucket_name.s3.amazonaws.com/image.jpg' } }; + for (var u in parseTests) { var actual = url.parse(u), expected = parseTests[u]; |