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
92c7e1ae
Commit
92c7e1ae
authored
Sep 08, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 09, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Fixed tests on IE <6.
parent
0d6f4d24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
15 deletions
+18
-15
webbrowser.c
dlls/shdocvw/tests/webbrowser.c
+18
-15
No files found.
dlls/shdocvw/tests/webbrowser.c
View file @
92c7e1ae
...
...
@@ -67,12 +67,6 @@ DEFINE_OLEGUID(CGID_DocHostCmdPriv, 0x000214D4L, 0, 0);
expect_ ## func = called_ ## func = FALSE; \
}while(0)
#define CHECK_CALLED_BROKEN(func) \
do { \
ok(called_ ## func || broken(!called_ ## func), "expected " #func "\n"); \
expect_ ## func = called_ ## func = FALSE; \
}while(0)
#define CLEAR_CALLED(func) \
expect_ ## func = called_ ## func = FALSE
...
...
@@ -1828,13 +1822,13 @@ static void test_ie_funcs(IUnknown *unk)
SET_EXPECT
(
Invoke_WINDOWSETRESIZABLE
);
hres
=
IWebBrowser2_put_Resizable
(
wb
,
(
exvb
=
VARIANT_TRUE
));
ok
(
hres
==
S_OK
||
broken
(
hres
==
E_NOTIMPL
)
,
"put_Resizable failed: %08x
\n
"
,
hres
);
CHECK_CALLED
_BROKEN
(
Invoke_WINDOWSETRESIZABLE
);
ok
(
hres
==
S_OK
,
"put_Resizable failed: %08x
\n
"
,
hres
);
CHECK_CALLED
(
Invoke_WINDOWSETRESIZABLE
);
SET_EXPECT
(
Invoke_WINDOWSETRESIZABLE
);
hres
=
IWebBrowser2_put_Resizable
(
wb
,
(
exvb
=
VARIANT_FALSE
));
ok
(
hres
==
S_OK
||
broken
(
hres
==
E_NOTIMPL
)
,
"put_Resizable failed: %08x
\n
"
,
hres
);
CHECK_CALLED
_BROKEN
(
Invoke_WINDOWSETRESIZABLE
);
ok
(
hres
==
S_OK
,
"put_Resizable failed: %08x
\n
"
,
hres
);
CHECK_CALLED
(
Invoke_WINDOWSETRESIZABLE
);
hres
=
IWebBrowser2_get_Resizable
(
wb
,
&
b
);
ok
(
hres
==
E_NOTIMPL
,
"get_Resizable failed: %08x
\n
"
,
hres
);
...
...
@@ -2213,12 +2207,12 @@ static void test_Navigate2(IUnknown *unk)
CHECK_CALLED
(
Invoke_AMBIENT_USERAGENT
);
CHECK_CALLED
(
Invoke_AMBIENT_PALETTE
);
CHECK_CALLED
(
GetOptionKeyPath
);
CHECK_CALLED
_BROKEN
(
GetOverridesKeyPath
);
CHECK_CALLED
(
GetOverridesKeyPath
);
todo_wine
CHECK_CALLED
(
QueryStatus_SETPROGRESSTEXT
);
todo_wine
CHECK_CALLED
(
Exec_SETPROGRESSMAX
);
todo_wine
CHECK_CALLED
(
Exec_SETPROGRESSPOS
);
todo_wine
CHECK_CALLED
_BROKEN
(
Invoke_SETSECURELOCKICON
);
todo_wine
CHECK_CALLED
_BROKEN
(
Invoke_FILEDOWNLOAD
);
todo_wine
CHECK_CALLED
(
Invoke_SETSECURELOCKICON
);
todo_wine
CHECK_CALLED
(
Invoke_FILEDOWNLOAD
);
todo_wine
CHECK_CALLED
(
Invoke_COMMANDSTATECHANGE
);
todo_wine
CHECK_CALLED
(
Exec_SETDOWNLOADSTATE_0
);
CHECK_CALLED
(
EnableModeless_TRUE
);
...
...
@@ -2482,9 +2476,10 @@ static void test_WebBrowser(BOOL do_download)
hres
=
CoCreateInstance
(
&
CLSID_WebBrowser
,
NULL
,
CLSCTX_INPROC_SERVER
|
CLSCTX_INPROC_HANDLER
,
&
IID_IUnknown
,
(
void
**
)
&
unk
);
ok
(
hres
==
S_OK
,
"CoCreateInterface failed: %08x
\n
"
,
hres
);
if
(
FAILED
(
hres
))
if
(
FAILED
(
hres
))
{
win_skip
(
"Could not create WebBrowser, probably too old IE
\n
"
);
return
;
}
is_downloading
=
FALSE
;
is_first_load
=
TRUE
;
...
...
@@ -2492,6 +2487,14 @@ static void test_WebBrowser(BOOL do_download)
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IWebBrowser2
,
(
void
**
)
&
wb
);
ok
(
hres
==
S_OK
,
"Could not get IWebBrowser2 iface: %08x
\n
"
,
hres
);
hres
=
IWebBrowser2_put_Resizable
(
wb
,
VARIANT_TRUE
);
if
(
hres
==
E_NOTIMPL
)
{
win_skip
(
"put_Resizable returned E_NOTIMPL, assuming IE <6
\n
"
);
IWebBrowser_Release
(
wb
);
IUnknown_Release
(
unk
);
return
;
}
test_QueryInterface
(
unk
);
test_ready_state
(
READYSTATE_UNINITIALIZED
);
test_ClassInfo
(
unk
);
...
...
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