Skip to content

Commit

Permalink
Added a few more tes from Node's URL tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidTPate committed Oct 17, 2014
1 parent ec24e2b commit 142a71c
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,32 @@
'http://[v1.09azAZ-._~!$&\'()*+,;=:]',
'http://[a:b:c:d:e::1.2.3.4]',
'coap://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]',
'http://[1080:0:0:0:8:800:200C:417A]'
'http://[1080:0:0:0:8:800:200C:417A]',
'http://127.0.0.1:8000/foo?bar',
'http://asdf:qwer@localhost:8000',
'http://user:pass%3A@localhost:80',
'http://localhost:123',
'https://localhost:123',
'file:///whatever',
'mailto:asdf@asdf.com',
'ftp://www.example.com',
'javascript:alert(\'hello\');',
'xmpp:isaacschlueter@jabber.org',
'f://some.host/path',
'http://localhost:18/asdf',
'http://localhost:42/asdf?qwer=zxcv',
'HTTP://www.example.com/',
'HTTP://www.example.com',
'http://www.ExAmPlE.com/',
'http://user:pw@www.ExAmPlE.com/',
'http://USER:PW@www.ExAmPlE.com/',
'http://user@www.example.com/',
'http://user%3Apw@www.example.com/',
'http://x.com/path?that%27s#all,%20folks',
'HTTP://X.COM/Y',
'http://www.narwhaljs.org/blog/categories?id=news',
'http://mt0.google.com/vt/lyrs=m@114&hl=en&src=api&x=2&y=2&z=3&s=',
'http://mt0.google.com/vt/lyrs=m@114???&hl=en&src=api&x=2&y=2&z=3&s='
],
invalidUris = [
'file:/asda',
Expand Down

0 comments on commit 142a71c

Please sign in to comment.