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
0574a30f
Commit
0574a30f
authored
Nov 18, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ieframe: Fixed tests on IE9.
parent
1243dc9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
6 deletions
+22
-6
webbrowser.c
dlls/ieframe/tests/webbrowser.c
+22
-6
No files found.
dlls/ieframe/tests/webbrowser.c
View file @
0574a30f
...
...
@@ -432,6 +432,8 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID
*/
CHECK_EXPECT
(
Exec_IDM_STOP
);
return
OLECMDERR_E_NOTSUPPORTED
;
case
6058
:
/* TODO */
return
E_NOTIMPL
;
default:
ok
(
0
,
"unexpected nsCmdID %d
\n
"
,
nCmdID
);
}
...
...
@@ -445,6 +447,7 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID
case
67
:
/* TODO */
case
69
:
/* TODO */
case
101
:
/* TODO (IE8) */
case
109
:
/* TODO (IE9) */
return
E_FAIL
;
default:
ok
(
0
,
"unexpected nCmdID %d
\n
"
,
nCmdID
);
...
...
@@ -1813,6 +1816,8 @@ static void test_ClientSite(IUnknown *unk, IOleClientSite *client, BOOL stop_dow
SET_EXPECT
(
Invoke_DOWNLOADCOMPLETE
);
if
(
use_container_olecmd
)
SET_EXPECT
(
Exec_SETDOWNLOADSTATE_0
);
SET_EXPECT
(
Invoke_COMMANDSTATECHANGE
);
}
else
{
SET_EXPECT
(
Invoke_STATUSTEXTCHANGE
);
}
hres
=
IOleObject_SetClientSite
(
oleobj
,
client
);
...
...
@@ -1827,7 +1832,9 @@ static void test_ClientSite(IUnknown *unk, IOleClientSite *client, BOOL stop_dow
todo_wine
CHECK_CALLED
(
Invoke_DOWNLOADCOMPLETE
);
if
(
use_container_olecmd
)
todo_wine
CHECK_CALLED
(
Exec_SETDOWNLOADSTATE_0
);
todo_wine
CHECK_CALLED
(
Invoke_COMMANDSTATECHANGE
);
}
}
else
{
CLEAR_CALLED
(
Invoke_STATUSTEXTCHANGE
);
/* Called by IE9 */
}
hres
=
IOleInPlaceObject_GetWindow
(
inplace
,
&
hwnd
);
ok
(
hres
==
S_OK
,
"GetWindow failed: %08x
\n
"
,
hres
);
...
...
@@ -2461,8 +2468,8 @@ static void test_Navigate2(IUnknown *unk)
CHECK_CALLED
(
GetHostInfo
);
CHECK_CALLED
(
Invoke_AMBIENT_DLCONTROL
);
CHECK_CALLED
(
Invoke_AMBIENT_USERAGENT
);
C
HECK_CALLED
(
Invoke_AMBIENT_PALETTE
);
C
HECK
_CALLED
(
GetOptionKeyPath
);
C
LEAR_CALLED
(
Invoke_AMBIENT_PALETTE
);
/* Not called by IE9 */
C
LEAR
_CALLED
(
GetOptionKeyPath
);
CHECK_CALLED
(
GetOverridesKeyPath
);
if
(
use_container_olecmd
)
todo_wine
CHECK_CALLED
(
QueryStatus_SETPROGRESSTEXT
);
if
(
use_container_olecmd
)
todo_wine
CHECK_CALLED
(
Exec_SETPROGRESSMAX
);
...
...
@@ -2545,13 +2552,20 @@ static void test_ExecWB(IWebBrowser2 *webbrowser, BOOL use_custom_target, BOOL h
* These tests show that QueryStatusWB uses a NULL pguidCmdGroup, since OLECMDID_STOP
* succeeds (S_OK) and IDM_STOP does not (OLECMDERR_E_NOTSUPPORTED).
*/
if
(
use_custom_target
)
if
(
use_custom_target
)
{
SET_EXPECT
(
Exec_STOP
);
}
else
if
(
has_document
)
{
SET_EXPECT
(
Invoke_STATUSTEXTCHANGE
);
SET_EXPECT
(
SetStatusText
);
}
hres
=
IWebBrowser2_ExecWB
(
webbrowser
,
OLECMDID_STOP
,
OLECMDEXECOPT_DONTPROMPTUSER
,
0
,
0
);
if
(
!
use_custom_target
&&
has_document
)
if
(
!
use_custom_target
&&
has_document
)
{
todo_wine
ok
(
hres
==
olecmdid_state
,
"ExecWB failed: %08x %08x
\n
"
,
hres
,
olecmdid_state
);
else
CLEAR_CALLED
(
Invoke_STATUSTEXTCHANGE
);
/* Called by IE9 */
CLEAR_CALLED
(
SetStatusText
);
/* Called by IE9 */
}
else
{
ok
(
hres
==
olecmdid_state
,
"ExecWB failed: %08x %08x
\n
"
,
hres
,
olecmdid_state
);
}
if
(
use_custom_target
)
SET_EXPECT
(
Exec_IDM_STOP
);
hres
=
IWebBrowser2_ExecWB
(
webbrowser
,
IDM_STOP
,
OLECMDEXECOPT_DONTPROMPTUSER
,
0
,
0
);
...
...
@@ -3037,6 +3051,7 @@ static void test_Close(IWebBrowser2 *wb, BOOL do_download)
SET_EXPECT
(
OnUIDeactivate
);
SET_EXPECT
(
OnFocus
);
SET_EXPECT
(
OnInPlaceDeactivate
);
SET_EXPECT
(
Invoke_STATUSTEXTCHANGE
);
if
(
!
do_download
)
{
SET_EXPECT
(
Invoke_COMMANDSTATECHANGE
);
SET_EXPECT
(
Invoke_DOWNLOADCOMPLETE
);
...
...
@@ -3048,6 +3063,7 @@ static void test_Close(IWebBrowser2 *wb, BOOL do_download)
CHECK_CALLED
(
OnUIDeactivate
);
todo_wine
CHECK_CALLED
(
OnFocus
);
CHECK_CALLED
(
OnInPlaceDeactivate
);
CLEAR_CALLED
(
Invoke_STATUSTEXTCHANGE
);
/* Called by IE9 */
if
(
!
do_download
)
{
todo_wine
CHECK_CALLED
(
Invoke_COMMANDSTATECHANGE
);
todo_wine
CHECK_CALLED
(
Invoke_DOWNLOADCOMPLETE
);
...
...
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