**** Merged from MCS ****
[mono-project.git] / mcs / class / System / Test / System / test-uri-list.txt
blob165fcd4c0e7e7e6b85c5c678de262fc1b093f61c
1 #
2 # test-uri-list.txt : URI test input list
4 # Author:
5 #       Atsushi Enomoto <atushi@ximian.com>
7 # Usage:
8 #       You need Microsoft.NET to make use of this tool.
9 #       1. compile uri-test-generator.cs and create uri-test-generator.exe.
10 #       2. add whatever url string you want to test to this file.
11 #       (note that it can check only "correct" uri, which can pass on MS.NET).
12 #       3. run uri-test-generator.exe. It will generate uri-test-props.txt.
13 #       4. UriTest2 test class will load the new test file and check Uri class.
15 #       It would be better to edit this file as utf-8 text. I put some
16 #       non-ASCII characters for tests (Japanese and Chinese traditional).
18 # Remember that
19 #       - relative URI are not allowed for input to Uri.ctor(). 
20 #         In some cases, it became ambiguous to parse. For example,
21 #         file://readme.txt is treated as file server whose host name is 
22 #         "readme", domain name is "txt".
24 #       - MS.NET does not conform to RFC 2396 in some places.
26 #       - Uri escape is done inside System.Uri itself (unless you explicitly
27 #         specify dontEscape = true). This means that Uri.ctor() may allows
28 #         non RFC-conformant string. It accepts, and escapes internally.
30 http://server
31 http://server/
32 http://server/maybe_file
33 http://server/directory/
34 http://server.com
35 http://server.com/
36 http://server.com/maybe_file
37 http://server.com/directory/
38 # http:server ... should not be allowed
39 c:/foo.txt
40 c:\foo.txt
41 file://c:/foo.txt
42 # /usr/local/bin ... doesn't pass. it is critical problem of MS.NET
43 \\server
44 # //server ... this test causes different interpretation between Windows and Unix. On Unix the path is condesnsed to /server
45 # ///server ... this became UNC server name in MS.NET
46 file://server
47 file://server/
48 file://server/maybe_file
49 file://server/directory/
50 file://server.com
51 ## below should be treated as UNC server
52 file://readme.txt
53 file://server.com/
54 # file:server.com
55 # file:server.com/
56 # file:server
57 file://server.com/maybe_file
58 file://server.com/directory/
59 ## Below are taken from UriTest.cs
60 http://contoso.com?subject=uri
61 mailto:user:pwd@contoso.com?subject=uri
62 \\myserver\mydir\mysubdir\myfile.ext
63 http://www.contoso.com
64 http://www.contoso.com/foo/bar/index.html?x=0
65 c:\tmp\hello.txt
66 # This AbsoluteUri should be ///cygwin/tmp/hello.txt
67 # file:////////cygwin/tmp/hello.txt
68 file://mymachine/cygwin/tmp/hello.txt
69 # This AbsoluteUri should be ///cygwin/tmp/hello.txt
70 # file://///c:/cygwin/tmp/hello.txt
71 file://one_file.txt
72 file://cygwin/tmp/hello.txt
73 file://server/filename.ext
74 \\server\share\filename.ext
75 http://1.2.3.4
76 file://1.2.3.4
77 file:///c:/name%20with%20space.txt
78 # file:
79 # http:
80 # makefile
81 # gopher:
82 # ftp:
83 # file:/
84 # file://
85 # file:/// ... however, should be allowed in Unix file path.
86 # file://\
87 # file://c:
88 # file:///c: ... however, should be allowed in Windows file path.
89 # news: ... in fact MS passes this.
90 # Below should be allowed
91 http://localhost/c#
92 http://localhost/c#bookmark
93 file://localhost/c#fragment
94 file://test.domain.com/c#
95 file://test.domain.com/c#bookmark
96 # //localhost/c# ... this is commented out as the same reason why //server is also commented out.
97 # below should not be allowed ...
98 file://c:/c#
99 # this passes... it breaks RFC 2396 rule.
100 http://c#
101 mailto:c#
102 http://c#bookmark
104 # non-standard scheme
106 urn:mono-uri-test
107 # This "8080" is not a port specifier. This is "opaque part" (RFC 2396)
108 urn:mono-uri-test:8080
109 # But here, it is interpreted as a host name.
110 urn://mono-uri-test:8080
111 # Scheme cannot start with non-alphabetic character, but MS fails to reject
112 #ファイル:myserver/foo.txt
113 #ファイル://myserver/foo.txt
114 #辭典://cn_to_ja/
116 # still looks TODO (EscapeString)
118 http://web.app.com/test.cgi?value=あいうえお
119 #辭典:cn_to_ja/ファイル
120 #ファイル:
121 #辭典:
124 # MS.NET supplies no host info (consoto.com), but I think Mono is better.
125 # news:123456@contoso.com