Commit 2ce15be5 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

urlmon: Added more mk: combining tests.

parent 9cbcbe8d
......@@ -6695,6 +6695,168 @@ static const uri_combine_test uri_combine_tests[] = {
{URLZONE_INVALID,E_NOTIMPL}
}
},
{ "mk:@MSITSTORE:C:\\dir\\file.chm::/subdir/file.txt",0,
"/relative/path.txt",Uri_CREATE_ALLOW_RELATIVE,
0,S_OK,FALSE,
{
{"mk:@MSITSTORE:C:\\dir\\file.chm::/relative/path.txt",S_OK},
{"",S_FALSE},
{"mk:@MSITSTORE:C:\\dir\\file.chm::/relative/path.txt",S_OK},
{"",S_FALSE},
{".txt",S_OK},
{"",S_FALSE},
{"",S_FALSE},
{"",S_FALSE},
{"@MSITSTORE:C:\\dir\\file.chm::/relative/path.txt",S_OK},
{"@MSITSTORE:C:\\dir\\file.chm::/relative/path.txt",S_OK},
{"",S_FALSE},
{"mk:@MSITSTORE:C:\\dir\\file.chm::/relative/path.txt",S_OK},
{"mk",S_OK},
{"",S_FALSE},
{"",S_FALSE}
},
{
{Uri_HOST_UNKNOWN,S_OK},
{0,S_FALSE},
{URL_SCHEME_MK,S_OK},
{URLZONE_INVALID,E_NOTIMPL}
}
},
{ "mk:MSITSTORE:C:\\dir\\file.chm::/subdir/file.txt",0,
"/relative/path.txt",Uri_CREATE_ALLOW_RELATIVE,
0,S_OK,FALSE,
{
{"mk:MSITSTORE:C:\\dir\\file.chm::/relative/path.txt",S_OK},
{"",S_FALSE},
{"mk:MSITSTORE:C:\\dir\\file.chm::/relative/path.txt",S_OK},
{"",S_FALSE},
{".txt",S_OK},
{"",S_FALSE},
{"",S_FALSE},
{"",S_FALSE},
{"MSITSTORE:C:\\dir\\file.chm::/relative/path.txt",S_OK},
{"MSITSTORE:C:\\dir\\file.chm::/relative/path.txt",S_OK},
{"",S_FALSE},
{"mk:MSITSTORE:C:\\dir\\file.chm::/relative/path.txt",S_OK},
{"mk",S_OK},
{"",S_FALSE},
{"",S_FALSE}
},
{
{Uri_HOST_UNKNOWN,S_OK},
{0,S_FALSE},
{URL_SCHEME_MK,S_OK},
{URLZONE_INVALID,E_NOTIMPL}
}
},
{ "mk:@MSITSTORE:C:\\dir\\file.chm::/subdir/../../file.txt",0,
"/relative/path.txt",Uri_CREATE_ALLOW_RELATIVE,
0,S_OK,FALSE,
{
{"mk:@MSITSTORE:/relative/path.txt",S_OK},
{"",S_FALSE},
{"mk:@MSITSTORE:/relative/path.txt",S_OK},
{"",S_FALSE},
{".txt",S_OK},
{"",S_FALSE},
{"",S_FALSE},
{"",S_FALSE},
{"@MSITSTORE:/relative/path.txt",S_OK},
{"@MSITSTORE:/relative/path.txt",S_OK},
{"",S_FALSE},
{"mk:@MSITSTORE:/relative/path.txt",S_OK},
{"mk",S_OK},
{"",S_FALSE},
{"",S_FALSE}
},
{
{Uri_HOST_UNKNOWN,S_OK},
{0,S_FALSE},
{URL_SCHEME_MK,S_OK},
{URLZONE_INVALID,E_NOTIMPL}
}
},
{ "mk:@xxx:C:\\dir\\file.chm::/subdir/../../file.txt",0,
"/relative/path.txt",Uri_CREATE_ALLOW_RELATIVE,
0,S_OK,FALSE,
{
{"mk:@xxx:/relative/path.txt",S_OK},
{"",S_FALSE},
{"mk:@xxx:/relative/path.txt",S_OK},
{"",S_FALSE},
{".txt",S_OK},
{"",S_FALSE},
{"",S_FALSE},
{"",S_FALSE},
{"@xxx:/relative/path.txt",S_OK},
{"@xxx:/relative/path.txt",S_OK},
{"",S_FALSE},
{"mk:@xxx:/relative/path.txt",S_OK},
{"mk",S_OK},
{"",S_FALSE},
{"",S_FALSE}
},
{
{Uri_HOST_UNKNOWN,S_OK},
{0,S_FALSE},
{URL_SCHEME_MK,S_OK},
{URLZONE_INVALID,E_NOTIMPL}
}
},
{ "mk:xxx:C:\\dir\\file.chm::/subdir/../../file.txt",0,
"/relative/path.txt",Uri_CREATE_ALLOW_RELATIVE,
0,S_OK,FALSE,
{
{"mk:/relative/path.txt",S_OK},
{"",S_FALSE},
{"mk:/relative/path.txt",S_OK},
{"",S_FALSE},
{".txt",S_OK},
{"",S_FALSE},
{"",S_FALSE},
{"",S_FALSE},
{"/relative/path.txt",S_OK},
{"/relative/path.txt",S_OK},
{"",S_FALSE},
{"mk:/relative/path.txt",S_OK},
{"mk",S_OK},
{"",S_FALSE},
{"",S_FALSE}
},
{
{Uri_HOST_UNKNOWN,S_OK},
{0,S_FALSE},
{URL_SCHEME_MK,S_OK},
{URLZONE_INVALID,E_NOTIMPL}
}
},
{ "ml:@MSITSTORE:C:\\dir\\file.chm::/subdir/file.txt",0,
"/relative/path.txt",Uri_CREATE_ALLOW_RELATIVE,
0,S_OK,FALSE,
{
{"ml:/relative/path.txt",S_OK},
{"",S_FALSE},
{"ml:/relative/path.txt",S_OK},
{"",S_FALSE},
{".txt",S_OK},
{"",S_FALSE},
{"",S_FALSE},
{"",S_FALSE},
{"/relative/path.txt",S_OK},
{"/relative/path.txt",S_OK},
{"",S_FALSE},
{"ml:/relative/path.txt",S_OK},
{"ml",S_OK},
{"",S_FALSE},
{"",S_FALSE}
},
{
{Uri_HOST_UNKNOWN,S_OK},
{0,S_FALSE},
{URL_SCHEME_UNKNOWN,S_OK},
{URLZONE_INVALID,E_NOTIMPL}
}
},
{ "http://winehq.org/dir/test?querystring",0,
"//winehq.com/#hash",Uri_CREATE_ALLOW_RELATIVE,
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