diff options
author | Junshu Okamoto <o_askgulf@icloud.com> | 2016-10-07 13:02:12 -0700 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2016-10-08 08:58:06 -0700 |
commit | 7084b9c5a179098edc8952c3348fc66c61ddcfc6 (patch) | |
tree | e780767ebf8d2393ee5f9a3511a68ebcefbc1da8 /test | |
parent | 90cd39f3adf5a6f8079e9dd4cef2900646667dd5 (diff) | |
download | android-node-v8-7084b9c5a179098edc8952c3348fc66c61ddcfc6.tar.gz android-node-v8-7084b9c5a179098edc8952c3348fc66c61ddcfc6.tar.bz2 android-node-v8-7084b9c5a179098edc8952c3348fc66c61ddcfc6.zip |
test: expand test coverage for url.js
Add url example with more than 255 characters in the hostname
of the url.
PR-URL: https://github.com/nodejs/node/pull/8976
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-url.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/parallel/test-url.js b/test/parallel/test-url.js index 12c3178fb9..8bbc719473 100644 --- a/test/parallel/test-url.js +++ b/test/parallel/test-url.js @@ -1200,6 +1200,17 @@ var formatTests = { pathname: '/' }, + // more than 255 characters in hostname which exceeds the limit + [`http://${'a'.repeat(255)}.com/node`]: { + href: 'http:///node', + protocol: 'http:', + slashes: true, + host: '', + hostname: '', + pathname: '/node', + path: '/node' + }, + // https://github.com/nodejs/node/issues/3361 'file:///home/user': { href: 'file:///home/user', |