Commit 47a44f61 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

urlmon/tests: Add another case to IUri tests.

parent 64e5a6a2
...@@ -788,6 +788,32 @@ static const uri_properties uri_tests[] = { ...@@ -788,6 +788,32 @@ static const uri_properties uri_tests[] = {
{URLZONE_INVALID,E_NOTIMPL,FALSE} {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. */ /* Allowed to have invalid % encoded because its an unknown scheme type. */
{ "zip://%xy:word@winehq.org/", 0, S_OK, FALSE, { "zip://%xy:word@winehq.org/", 0, S_OK, FALSE,
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment