|
| 1 | +'use strict'; |
| 2 | + |
| 3 | +// This file contains test cases not part of the WPT |
| 4 | + |
1 | 5 | module.exports = [ |
2 | | - { |
3 | | - 'url': 'tftp://foobar.com/someconfig;mode=netascii', |
4 | | - 'protocol': 'tftp:', |
5 | | - 'hostname': 'foobar.com', |
6 | | - 'pathname': '/someconfig;mode=netascii' |
7 | | - }, |
8 | | - { |
9 | | - 'url': 'telnet://user:[email protected]:23/', |
10 | | - 'protocol': 'telnet:', |
11 | | - 'username': 'user', |
12 | | - 'password': 'pass', |
13 | | - 'hostname': 'foobar.com', |
14 | | - 'port': '23', |
15 | | - 'pathname': '/' |
16 | | - }, |
17 | | - { |
18 | | - 'url': 'ut2004://10.10.10.10:7777/Index.ut2', |
19 | | - 'protocol': 'ut2004:', |
20 | | - 'hostname': '10.10.10.10', |
21 | | - 'port': '7777', |
22 | | - 'pathname': '/Index.ut2' |
23 | | - }, |
24 | | - { |
25 | | - 'url': 'redis://foo:bar@somehost:6379/0?baz=bam&qux=baz', |
26 | | - 'protocol': 'redis:', |
27 | | - 'username': 'foo', |
28 | | - 'password': 'bar', |
29 | | - 'hostname': 'somehost', |
30 | | - 'port': '6379', |
31 | | - 'pathname': '/0', |
32 | | - 'search': '?baz=bam&qux=baz' |
33 | | - }, |
34 | | - { |
35 | | - 'url': 'rsync://foo@host:911/sup', |
36 | | - 'protocol': 'rsync:', |
37 | | - 'username': 'foo', |
38 | | - 'hostname': 'host', |
39 | | - 'port': '911', |
40 | | - 'pathname': '/sup' |
41 | | - }, |
42 | | - { |
43 | | - 'url': 'git://github.com/foo/bar.git', |
44 | | - 'protocol': 'git:', |
45 | | - 'hostname': 'github.com', |
46 | | - 'pathname': '/foo/bar.git' |
47 | | - }, |
48 | | - { |
49 | | - 'url': 'irc://myserver.com:6999/channel?passwd', |
50 | | - 'protocol': 'irc:', |
51 | | - 'hostname': 'myserver.com', |
52 | | - 'port': '6999', |
53 | | - 'pathname': '/channel', |
54 | | - 'search': '?passwd' |
55 | | - }, |
56 | | - { |
57 | | - 'url': 'dns://fw.example.org:9999/foo.bar.org?type=TXT', |
58 | | - 'protocol': 'dns:', |
59 | | - 'hostname': 'fw.example.org', |
60 | | - 'port': '9999', |
61 | | - 'pathname': '/foo.bar.org', |
62 | | - 'search': '?type=TXT' |
63 | | - }, |
64 | | - { |
65 | | - 'url': 'ldap://localhost:389/ou=People,o=JNDITutorial', |
66 | | - 'protocol': 'ldap:', |
67 | | - 'hostname': 'localhost', |
68 | | - 'port': '389', |
69 | | - 'pathname': '/ou=People,o=JNDITutorial' |
70 | | - }, |
71 | | - { |
72 | | - 'url': 'git+https://github.com/foo/bar', |
73 | | - 'protocol': 'git+https:', |
74 | | - 'hostname': 'github.com', |
75 | | - 'pathname': '/foo/bar' |
76 | | - }, |
77 | | - { |
78 | | - 'url': 'urn:ietf:rfc:2648', |
79 | | - 'protocol': 'urn:', |
80 | | - 'pathname': 'ietf:rfc:2648' |
81 | | - }, |
82 | | - { |
83 | | - 'url': 'tag:[email protected],2001:foo/bar', |
84 | | - 'protocol': 'tag:', |
85 | | - 'pathname': '[email protected],2001:foo/bar' |
86 | | - } |
87 | 6 | ]; |
0 commit comments