Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2011-07-19 22:56:44 +0400
committerisaacs <i@izs.me>2011-07-19 22:56:44 +0400
commitddfc6b78cc15202789e58b9220c1897e9d9aa525 (patch)
treec7fbb2b20b863ee42cc2ce702e97de2061fefcd2 /test
parent973153d1ccdbb06f9067f3698578e8a5685a87c4 (diff)
Close #1360 url: Allow _ in hostnames.
Diffstat (limited to 'test')
-rw-r--r--test/simple/test-url.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/simple/test-url.js b/test/simple/test-url.js
index ea85bc967fe..8cee8eb2794 100644
--- a/test/simple/test-url.js
+++ b/test/simple/test-url.js
@@ -274,8 +274,17 @@ var parseTests = {
'search' : '?search=foo',
'query' : 'search=foo',
'hash' : '#bar'
+ },
+ '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];