Thomas Mullaly : urlmon/tests: Added more test data for the IUri tests.
Alexandre Julliard
julliard at winehq.org
Mon May 31 11:21:37 CDT 2010
Module: wine
Branch: master
Commit: 2e5b76dbf7c7abb87d918f38edf8dd3786d18871
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2e5b76dbf7c7abb87d918f38edf8dd3786d18871
Author: Thomas Mullaly <thomas.mullaly at gmail.com>
Date: Fri May 28 13:07:49 2010 -0400
urlmon/tests: Added more test data for the IUri tests.
---
dlls/urlmon/tests/uri.c | 100 +++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 100 insertions(+), 0 deletions(-)
diff --git a/dlls/urlmon/tests/uri.c b/dlls/urlmon/tests/uri.c
index 58f39b9..a641f6a 100644
--- a/dlls/urlmon/tests/uri.c
+++ b/dlls/urlmon/tests/uri.c
@@ -283,6 +283,106 @@ static const uri_properties uri_tests[] = {
{URL_SCHEME_UNKNOWN,S_OK,TRUE},
{URLZONE_INVALID,E_NOTIMPL,FALSE}
}
+ },
+ { "http://127.0.0.1/tests/../test dir/./test.txt", 0, S_OK, FALSE,
+ {
+ {"http://127.0.0.1/test%20dir/test.txt",S_OK,TRUE},
+ {"127.0.0.1",S_OK,TRUE},
+ {"http://127.0.0.1/test%20dir/test.txt",S_OK,TRUE},
+ {"",S_FALSE,TRUE},
+ {".txt",S_OK,TRUE},
+ {"",S_FALSE,TRUE},
+ {"127.0.0.1",S_OK,TRUE},
+ {"",S_FALSE,TRUE},
+ {"/test%20dir/test.txt",S_OK,TRUE},
+ {"/test%20dir/test.txt",S_OK,TRUE},
+ {"",S_FALSE,TRUE},
+ {"http://127.0.0.1/tests/../test dir/./test.txt",S_OK,TRUE},
+ {"http",S_OK,TRUE},
+ {"",S_FALSE,TRUE},
+ {"",S_FALSE,TRUE}
+ },
+ {
+ {Uri_HOST_IPV4,S_OK,TRUE},
+ {80,S_OK,TRUE},
+ {URL_SCHEME_HTTP,S_OK,TRUE},
+ {URLZONE_INVALID,E_NOTIMPL,FALSE}
+ }
+ },
+ { "http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]", 0, S_OK, FALSE,
+ {
+ {"http://[fedc:ba98:7654:3210:fedc:ba98:7654:3210]/",S_OK,TRUE},
+ {"[fedc:ba98:7654:3210:fedc:ba98:7654:3210]",S_OK,TRUE},
+ {"http://[fedc:ba98:7654:3210:fedc:ba98:7654:3210]/",S_OK,TRUE},
+ {"",S_FALSE,TRUE},
+ {"",S_FALSE,TRUE},
+ {"",S_FALSE,TRUE},
+ {"fedc:ba98:7654:3210:fedc:ba98:7654:3210",S_OK,TRUE},
+ {"",S_FALSE,TRUE},
+ {"/",S_OK,TRUE},
+ {"/",S_OK,TRUE},
+ {"",S_FALSE,TRUE},
+ {"http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]",S_OK,TRUE},
+ {"http",S_OK,TRUE},
+ {"",S_FALSE,TRUE},
+ {"",S_FALSE,TRUE}
+ },
+ {
+ {Uri_HOST_IPV6,S_OK,TRUE},
+ {80,S_OK,TRUE},
+ {URL_SCHEME_HTTP,S_OK,TRUE},
+ {URLZONE_INVALID,E_NOTIMPL,FALSE}
+ }
+ },
+ { "ftp://[::13.1.68.3]", 0, S_OK, FALSE,
+ {
+ {"ftp://[::13.1.68.3]/",S_OK,TRUE},
+ {"[::13.1.68.3]",S_OK,TRUE},
+ {"ftp://[::13.1.68.3]/",S_OK,TRUE},
+ {"",S_FALSE,TRUE},
+ {"",S_FALSE,TRUE},
+ {"",S_FALSE,TRUE},
+ {"::13.1.68.3",S_OK,TRUE},
+ {"",S_FALSE,TRUE},
+ {"/",S_OK,TRUE},
+ {"/",S_OK,TRUE},
+ {"",S_FALSE,TRUE},
+ {"ftp://[::13.1.68.3]",S_OK,TRUE},
+ {"ftp",S_OK,TRUE},
+ {"",S_FALSE,TRUE},
+ {"",S_FALSE,TRUE}
+ },
+ {
+ {Uri_HOST_IPV6,S_OK,TRUE},
+ {21,S_OK,TRUE},
+ {URL_SCHEME_FTP,S_OK,TRUE},
+ {URLZONE_INVALID,E_NOTIMPL,FALSE}
+ }
+ },
+ { "http://[FEDC:BA98:0:0:0:0:0:3210]", 0, S_OK, FALSE,
+ {
+ {"http://[fedc:ba98::3210]/",S_OK,TRUE},
+ {"[fedc:ba98::3210]",S_OK,TRUE},
+ {"http://[fedc:ba98::3210]/",S_OK,TRUE},
+ {"",S_FALSE,TRUE},
+ {"",S_FALSE,TRUE},
+ {"",S_FALSE,TRUE},
+ {"fedc:ba98::3210",S_OK,TRUE},
+ {"",S_FALSE,TRUE},
+ {"/",S_OK,TRUE},
+ {"/",S_OK,TRUE},
+ {"",S_FALSE,TRUE},
+ {"http://[FEDC:BA98:0:0:0:0:0:3210]",S_OK,TRUE},
+ {"http",S_OK,TRUE},
+ {"",S_FALSE,TRUE},
+ {"",S_FALSE,TRUE},
+ },
+ {
+ {Uri_HOST_IPV6,S_OK,TRUE},
+ {80,S_OK,TRUE},
+ {URL_SCHEME_HTTP,S_OK,TRUE},
+ {URLZONE_INVALID,E_NOTIMPL,FALSE}
+ }
}
};
More information about the wine-cvs
mailing list