From 47a44f61e2d980274e433d2debe81267f2bd845f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Hentschel?= Date: Thu, 24 Mar 2011 18:55:33 +0100 Subject: [PATCH] urlmon/tests: Add another case to IUri tests. --- dlls/urlmon/tests/uri.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/dlls/urlmon/tests/uri.c b/dlls/urlmon/tests/uri.c index 68345f1706b..5ebdd6e852e 100644 --- a/dlls/urlmon/tests/uri.c +++ b/dlls/urlmon/tests/uri.c @@ -788,6 +788,32 @@ static const uri_properties uri_tests[] = { {URLZONE_INVALID,E_NOTIMPL,FALSE} } }, + /* Make sure already percent encoded characters don't get unencoded. */ + { "ftp://\"%20\"weird@ftp.google.com/\"%20\"weird", Uri_CREATE_NO_ENCODE_FORBIDDEN_CHARACTERS, S_OK, FALSE, + { + {"ftp://\"%20\"weird@ftp.google.com/\"%20\"weird",S_OK,FALSE}, + {"\"%20\"weird@ftp.google.com",S_OK,FALSE}, + {"ftp://ftp.google.com/\"%20\"weird",S_OK,FALSE}, + {"google.com",S_OK,FALSE}, + {"",S_FALSE,FALSE}, + {"",S_FALSE,FALSE}, + {"ftp.google.com",S_OK,FALSE}, + {"",S_FALSE,FALSE}, + {"/\"%20\"weird",S_OK,FALSE}, + {"/\"%20\"weird",S_OK,FALSE}, + {"",S_FALSE,FALSE}, + {"ftp://\"%20\"weird@ftp.google.com/\"%20\"weird",S_OK,FALSE}, + {"ftp",S_OK,FALSE}, + {"\"%20\"weird",S_OK,FALSE}, + {"\"%20\"weird",S_OK,FALSE} + }, + { + {Uri_HOST_DNS,S_OK,FALSE}, + {21,S_OK,FALSE}, + {URL_SCHEME_FTP,S_OK,FALSE}, + {URLZONE_INVALID,E_NOTIMPL,FALSE} + } + }, /* Allowed to have invalid % encoded because its an unknown scheme type. */ { "zip://%xy:word@winehq.org/", 0, S_OK, FALSE, {