Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
4ac8322d
Commit
4ac8322d
authored
Jan 07, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 07, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Skip more tests on old IE and ignore BINDSTATUS_PROXYDETECTING notification.
parent
3fd7a474
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
84 additions
and
73 deletions
+84
-73
url.c
dlls/urlmon/tests/url.c
+84
-73
No files found.
dlls/urlmon/tests/url.c
View file @
4ac8322d
...
...
@@ -1248,6 +1248,9 @@ static HRESULT WINAPI statusclb_OnProgress(IBindStatusCallback *iface, ULONG ulP
ok
(
0
,
"unexpected call
\n
"
);
ok
(
szStatusText
==
NULL
,
"Expected szStatusText to be NULL
\n
"
);
break
;
case
BINDSTATUS_PROXYDETECTING
:
trace
(
"BINDSTATUS_PROXYDETECTING
\n
"
);
break
;
default:
ok
(
0
,
"unexpected code %d
\n
"
,
ulStatusCode
);
};
...
...
@@ -1768,7 +1771,7 @@ static void test_CreateAsyncBindCtxEx(void)
IBindCtx_Release
(
bctx2
);
}
static
void
test_bscholder
(
IBindStatusCallback
*
holder
)
static
BOOL
test_bscholder
(
IBindStatusCallback
*
holder
)
{
IServiceProvider
*
serv_prov
;
IHttpNegotiate
*
http_negotiate
,
*
http_negotiate_serv
;
...
...
@@ -1776,6 +1779,7 @@ static void test_bscholder(IBindStatusCallback *holder)
IAuthenticate
*
authenticate
,
*
authenticate_serv
;
IInternetProtocol
*
protocol
;
BINDINFO
bindinfo
=
{
sizeof
(
bindinfo
)};
BOOL
ret
=
TRUE
;
LPWSTR
wstr
;
DWORD
dw
;
HRESULT
hres
;
...
...
@@ -1847,6 +1851,7 @@ static void test_bscholder(IBindStatusCallback *holder)
IHttpNegotiate_Release
(
http_negotiate2
);
}
else
{
skip
(
"Could not get IHttpNegotiate2
\n
"
);
ret
=
FALSE
;
}
SET_EXPECT
(
OnProgress_FINDINGRESOURCE
);
...
...
@@ -1897,12 +1902,14 @@ static void test_bscholder(IBindStatusCallback *holder)
CHECK_CALLED
(
QueryService_IInternetProtocol
);
IServiceProvider_Release
(
serv_prov
);
return
ret
;
}
static
void
test_RegisterBindStatusCallback
(
void
)
static
BOOL
test_RegisterBindStatusCallback
(
void
)
{
IBindStatusCallback
*
prevbsc
,
*
clb
;
IBindCtx
*
bindctx
;
BOOL
ret
=
TRUE
;
IUnknown
*
unk
;
HRESULT
hres
;
...
...
@@ -1933,7 +1940,8 @@ static void test_RegisterBindStatusCallback(void)
ok
(
hres
==
S_OK
,
"QueryInterface(IID_IBindStatusCallback) failed: %08x
\n
"
,
hres
);
ok
(
clb
!=
&
bsc
,
"bsc == clb
\n
"
);
test_bscholder
(
clb
);
if
(
!
test_bscholder
(
clb
))
ret
=
FALSE
;
IBindStatusCallback_Release
(
clb
);
...
...
@@ -1958,6 +1966,7 @@ static void test_RegisterBindStatusCallback(void)
ok
(
hres
==
E_INVALIDARG
,
"RevokeBindStatusCallback failed: %08x
\n
"
,
hres
);
IBindCtx_Release
(
bindctx
);
return
ret
;
}
#define BINDTEST_EMULATE 1
...
...
@@ -2570,110 +2579,112 @@ START_TEST(url)
test_create
();
test_CreateAsyncBindCtx
();
test_CreateAsyncBindCtxEx
();
test_RegisterBindStatusCallback
();
test_BindToStorage_fail
();
trace
(
"synchronous http test (COM not initialised)...
\n
"
);
test_BindToStorage
(
HTTP_TEST
,
FALSE
,
TYMED_ISTREAM
);
if
(
!
test_RegisterBindStatusCallback
())
{
test_BindToStorage_fail
();
trace
(
"synchronous http test (COM not initialised)...
\n
"
);
test_BindToStorage
(
HTTP_TEST
,
FALSE
,
TYMED_ISTREAM
);
CoInitialize
(
NULL
);
CoInitialize
(
NULL
);
trace
(
"synchronous http test...
\n
"
);
test_BindToStorage
(
HTTP_TEST
,
FALSE
,
TYMED_ISTREAM
);
trace
(
"synchronous http test...
\n
"
);
test_BindToStorage
(
HTTP_TEST
,
FALSE
,
TYMED_ISTREAM
);
trace
(
"synchronous http test (to object)...
\n
"
);
test_BindToObject
(
HTTP_TEST
,
FALSE
);
trace
(
"synchronous http test (to object)...
\n
"
);
test_BindToObject
(
HTTP_TEST
,
FALSE
);
trace
(
"synchronous file test...
\n
"
);
test_BindToStorage
(
FILE_TEST
,
FALSE
,
TYMED_ISTREAM
);
trace
(
"synchronous file test...
\n
"
);
test_BindToStorage
(
FILE_TEST
,
FALSE
,
TYMED_ISTREAM
);
trace
(
"synchronous file test (to object)...
\n
"
);
test_BindToObject
(
FILE_TEST
,
FALSE
);
trace
(
"synchronous file test (to object)...
\n
"
);
test_BindToObject
(
FILE_TEST
,
FALSE
);
bindf
=
BINDF_ASYNCHRONOUS
|
BINDF_ASYNCSTORAGE
|
BINDF_PULLDATA
;
bindf
=
BINDF_ASYNCHRONOUS
|
BINDF_ASYNCSTORAGE
|
BINDF_PULLDATA
;
trace
(
"http test...
\n
"
);
test_BindToStorage
(
HTTP_TEST
,
FALSE
,
TYMED_ISTREAM
);
trace
(
"http test...
\n
"
);
test_BindToStorage
(
HTTP_TEST
,
FALSE
,
TYMED_ISTREAM
);
trace
(
"http test (to file)...
\n
"
);
test_BindToStorage
(
HTTP_TEST
,
FALSE
,
TYMED_FILE
);
trace
(
"http test (to file)...
\n
"
);
test_BindToStorage
(
HTTP_TEST
,
FALSE
,
TYMED_FILE
);
trace
(
"http test (to object)...
\n
"
);
test_BindToObject
(
HTTP_TEST
,
FALSE
);
trace
(
"http test (to object)...
\n
"
);
test_BindToObject
(
HTTP_TEST
,
FALSE
);
trace
(
"http test (short response)...
\n
"
);
http_is_first
=
TRUE
;
urls
[
HTTP_TEST
]
=
SHORT_RESPONSE_URL
;
test_BindToStorage
(
HTTP_TEST
,
FALSE
,
TYMED_ISTREAM
);
trace
(
"http test (short response)...
\n
"
);
http_is_first
=
TRUE
;
urls
[
HTTP_TEST
]
=
SHORT_RESPONSE_URL
;
test_BindToStorage
(
HTTP_TEST
,
FALSE
,
TYMED_ISTREAM
);
trace
(
"http test (short response, to object)...
\n
"
);
test_BindToObject
(
HTTP_TEST
,
FALSE
);
trace
(
"http test (short response, to object)...
\n
"
);
test_BindToObject
(
HTTP_TEST
,
FALSE
);
trace
(
"emulated http test...
\n
"
);
test_BindToStorage
(
HTTP_TEST
,
TRUE
,
TYMED_ISTREAM
);
trace
(
"emulated http test...
\n
"
);
test_BindToStorage
(
HTTP_TEST
,
TRUE
,
TYMED_ISTREAM
);
trace
(
"emulated http test (to object)...
\n
"
);
test_BindToObject
(
HTTP_TEST
,
TRUE
);
trace
(
"emulated http test (to object)...
\n
"
);
test_BindToObject
(
HTTP_TEST
,
TRUE
);
trace
(
"emulated http test (to file)...
\n
"
);
test_BindToStorage
(
HTTP_TEST
,
TRUE
,
TYMED_FILE
);
trace
(
"emulated http test (to file)...
\n
"
);
test_BindToStorage
(
HTTP_TEST
,
TRUE
,
TYMED_FILE
);
trace
(
"about test...
\n
"
);
test_BindToStorage
(
ABOUT_TEST
,
FALSE
,
TYMED_ISTREAM
);
trace
(
"about test...
\n
"
);
test_BindToStorage
(
ABOUT_TEST
,
FALSE
,
TYMED_ISTREAM
);
trace
(
"about test (to file)...
\n
"
);
test_BindToStorage
(
ABOUT_TEST
,
FALSE
,
TYMED_FILE
);
trace
(
"about test (to file)...
\n
"
);
test_BindToStorage
(
ABOUT_TEST
,
FALSE
,
TYMED_FILE
);
trace
(
"about test (to object)...
\n
"
);
test_BindToObject
(
ABOUT_TEST
,
FALSE
);
trace
(
"about test (to object)...
\n
"
);
test_BindToObject
(
ABOUT_TEST
,
FALSE
);
trace
(
"emulated about test...
\n
"
);
test_BindToStorage
(
ABOUT_TEST
,
TRUE
,
TYMED_ISTREAM
);
trace
(
"emulated about test...
\n
"
);
test_BindToStorage
(
ABOUT_TEST
,
TRUE
,
TYMED_ISTREAM
);
trace
(
"emulated about test (to file)...
\n
"
);
test_BindToStorage
(
ABOUT_TEST
,
TRUE
,
TYMED_FILE
);
trace
(
"emulated about test (to file)...
\n
"
);
test_BindToStorage
(
ABOUT_TEST
,
TRUE
,
TYMED_FILE
);
trace
(
"emulated about test (to object)...
\n
"
);
test_BindToObject
(
ABOUT_TEST
,
TRUE
);
trace
(
"emulated about test (to object)...
\n
"
);
test_BindToObject
(
ABOUT_TEST
,
TRUE
);
trace
(
"file test...
\n
"
);
test_BindToStorage
(
FILE_TEST
,
FALSE
,
TYMED_ISTREAM
);
trace
(
"file test...
\n
"
);
test_BindToStorage
(
FILE_TEST
,
FALSE
,
TYMED_ISTREAM
);
trace
(
"file test (to file)...
\n
"
);
test_BindToStorage
(
FILE_TEST
,
FALSE
,
TYMED_FILE
);
trace
(
"file test (to file)...
\n
"
);
test_BindToStorage
(
FILE_TEST
,
FALSE
,
TYMED_FILE
);
trace
(
"file test (to object)...
\n
"
);
test_BindToObject
(
FILE_TEST
,
FALSE
);
trace
(
"file test (to object)...
\n
"
);
test_BindToObject
(
FILE_TEST
,
FALSE
);
trace
(
"emulated file test...
\n
"
);
test_BindToStorage
(
FILE_TEST
,
TRUE
,
TYMED_ISTREAM
);
trace
(
"emulated file test...
\n
"
);
test_BindToStorage
(
FILE_TEST
,
TRUE
,
TYMED_ISTREAM
);
trace
(
"emulated file test (to file)...
\n
"
);
test_BindToStorage
(
FILE_TEST
,
TRUE
,
TYMED_FILE
);
trace
(
"emulated file test (to file)...
\n
"
);
test_BindToStorage
(
FILE_TEST
,
TRUE
,
TYMED_FILE
);
trace
(
"emulated file test (to object)...
\n
"
);
test_BindToObject
(
FILE_TEST
,
TRUE
);
trace
(
"emulated file test (to object)...
\n
"
);
test_BindToObject
(
FILE_TEST
,
TRUE
);
trace
(
"emulated its test...
\n
"
);
test_BindToStorage
(
ITS_TEST
,
TRUE
,
TYMED_ISTREAM
);
trace
(
"emulated its test...
\n
"
);
test_BindToStorage
(
ITS_TEST
,
TRUE
,
TYMED_ISTREAM
);
trace
(
"emulated its test (to file)...
\n
"
);
test_BindToStorage
(
ITS_TEST
,
TRUE
,
TYMED_FILE
);
trace
(
"emulated its test (to file)...
\n
"
);
test_BindToStorage
(
ITS_TEST
,
TRUE
,
TYMED_FILE
);
trace
(
"emulated mk test...
\n
"
);
test_BindToStorage
(
MK_TEST
,
TRUE
,
TYMED_ISTREAM
);
trace
(
"emulated mk test...
\n
"
);
test_BindToStorage
(
MK_TEST
,
TRUE
,
TYMED_ISTREAM
);
trace
(
"test URLDownloadToFile for file protocol...
\n
"
);
test_URLDownloadToFile
(
FILE_TEST
,
FALSE
);
trace
(
"test URLDownloadToFile for file protocol...
\n
"
);
test_URLDownloadToFile
(
FILE_TEST
,
FALSE
);
trace
(
"test URLDownloadToFile for emulated file protocol...
\n
"
);
test_URLDownloadToFile
(
FILE_TEST
,
TRUE
);
trace
(
"test URLDownloadToFile for emulated file protocol...
\n
"
);
test_URLDownloadToFile
(
FILE_TEST
,
TRUE
);
trace
(
"test URLDownloadToFile for http protocol...
\n
"
);
test_URLDownloadToFile
(
HTTP_TEST
,
FALSE
);
trace
(
"test URLDownloadToFile for http protocol...
\n
"
);
test_URLDownloadToFile
(
HTTP_TEST
,
FALSE
);
trace
(
"test failures...
\n
"
);
test_BindToStorage_fail
();
trace
(
"test failures...
\n
"
);
test_BindToStorage_fail
();
}
DeleteFileA
(
wszIndexHtmlA
);
CloseHandle
(
complete_event
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment