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
0048ec36
Commit
0048ec36
authored
Nov 12, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 12, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Fixed race in tests.
parent
f89ac6fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
6 deletions
+28
-6
webbrowser.c
dlls/shdocvw/tests/webbrowser.c
+28
-6
No files found.
dlls/shdocvw/tests/webbrowser.c
View file @
0048ec36
...
...
@@ -118,6 +118,8 @@ DEFINE_EXPECT(Exec_SETDOWNLOADSTATE_0);
DEFINE_EXPECT
(
Exec_SETDOWNLOADSTATE_1
);
DEFINE_EXPECT
(
Exec_SETPROGRESSMAX
);
DEFINE_EXPECT
(
Exec_SETPROGRESSPOS
);
DEFINE_EXPECT
(
Exec_UPDATECOMMANDS
);
DEFINE_EXPECT
(
Exec_SETTITLE
);
DEFINE_EXPECT
(
QueryStatus_SETPROGRESSTEXT
);
DEFINE_EXPECT
(
QueryStatus_STOP
);
DEFINE_EXPECT
(
DocHost_EnableModeless_TRUE
);
...
...
@@ -285,6 +287,16 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID
ok
(
0
,
"unexpevted V_I4(pvaIn)=%d
\n
"
,
V_I4
(
pvaIn
));
}
return
S_OK
;
case
OLECMDID_UPDATECOMMANDS
:
CHECK_EXPECT
(
Exec_UPDATECOMMANDS
);
ok
(
nCmdexecopt
==
OLECMDEXECOPT_DONTPROMPTUSER
,
"nCmdexecopts=%08x
\n
"
,
nCmdexecopt
);
ok
(
!
pvaIn
,
"pvaIn != NULL
\n
"
);
ok
(
!
pvaOut
,
"pvaOut=%p, expected NULL
\n
"
,
pvaOut
);
return
S_OK
;
case
OLECMDID_SETTITLE
:
CHECK_EXPECT
(
Exec_SETTITLE
);
/* TODO: test args */
return
S_OK
;
default:
ok
(
0
,
"unexpected nsCmdID %d
\n
"
,
nCmdID
);
}
...
...
@@ -2250,9 +2262,7 @@ static void test_download(DWORD flags)
SET_EXPECT
(
Invoke_STATUSTEXTCHANGE
);
SET_EXPECT
(
SetStatusText
);
SET_EXPECT
(
EnableModeless_TRUE
);
if
(
is_first_load
)
SET_EXPECT
(
QueryStatus_STOP
);
else
if
(
!
is_first_load
)
SET_EXPECT
(
GetHostInfo
);
SET_EXPECT
(
Exec_SETDOWNLOADSTATE_0
);
SET_EXPECT
(
Invoke_TITLECHANGE
);
...
...
@@ -2261,6 +2271,11 @@ static void test_download(DWORD flags)
SET_EXPECT
(
GetDropTarget
);
SET_EXPECT
(
Invoke_PROGRESSCHANGE
);
SET_EXPECT
(
Invoke_DOCUMENTCOMPLETE
);
SET_EXPECT
(
UpdateUI
);
SET_EXPECT
(
Exec_UPDATECOMMANDS
);
SET_EXPECT
(
QueryStatus_STOP
);
while
(
!
called_Invoke_DOCUMENTCOMPLETE
&&
GetMessage
(
&
msg
,
NULL
,
0
,
0
))
{
TranslateMessage
(
&
msg
);
DispatchMessage
(
&
msg
);
...
...
@@ -2289,9 +2304,7 @@ static void test_download(DWORD flags)
todo_wine
CHECK_CALLED
(
EnableModeless_TRUE
);
else
CLEAR_CALLED
(
EnableModeless_FALSE
);
/* IE 8 */
if
(
is_first_load
)
todo_wine
CHECK_CALLED
(
QueryStatus_STOP
);
else
if
(
!
is_first_load
)
todo_wine
CHECK_CALLED
(
GetHostInfo
);
todo_wine
CHECK_CALLED
(
Exec_SETDOWNLOADSTATE_0
);
todo_wine
CHECK_CALLED
(
Invoke_TITLECHANGE
);
...
...
@@ -2304,6 +2317,15 @@ static void test_download(DWORD flags)
is_downloading
=
FALSE
;
test_ready_state
(
READYSTATE_COMPLETE
);
while
(
!
called_Exec_UPDATECOMMANDS
&&
GetMessage
(
&
msg
,
NULL
,
0
,
0
))
{
TranslateMessage
(
&
msg
);
DispatchMessage
(
&
msg
);
}
CHECK_CALLED
(
UpdateUI
);
CHECK_CALLED
(
Exec_UPDATECOMMANDS
);
CLEAR_CALLED
(
QueryStatus_STOP
);
}
static
void
test_olecmd
(
IUnknown
*
unk
,
BOOL
loaded
)
...
...
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