Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
e5147a51
Commit
e5147a51
authored
Apr 16, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ieframe: Added DISPID_WINDOWCLOSING tests.
parent
e7d5f329
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
1 deletion
+40
-1
webbrowser.c
dlls/ieframe/tests/webbrowser.c
+40
-1
No files found.
dlls/ieframe/tests/webbrowser.c
View file @
e5147a51
...
...
@@ -109,6 +109,7 @@ DEFINE_EXPECT(Invoke_TITLECHANGE);
DEFINE_EXPECT
(
Invoke_NAVIGATECOMPLETE2
);
DEFINE_EXPECT
(
Invoke_PROGRESSCHANGE
);
DEFINE_EXPECT
(
Invoke_DOCUMENTCOMPLETE
);
DEFINE_EXPECT
(
Invoke_WINDOWCLOSING
);
DEFINE_EXPECT
(
Invoke_282
);
DEFINE_EXPECT
(
EnableModeless_TRUE
);
DEFINE_EXPECT
(
EnableModeless_FALSE
);
...
...
@@ -658,7 +659,7 @@ static HRESULT WINAPI WebBrowserEvents2_QueryInterface(IDispatch *iface, REFIID
{
*
ppv
=
NULL
;
if
(
IsEqualGUID
(
&
DIID_DWebBrowserEvents2
,
riid
))
{
if
(
IsEqualGUID
(
&
DIID_DWebBrowserEvents2
,
riid
)
||
IsEqualGUID
(
&
IID_IDispatch
,
riid
)
)
{
*
ppv
=
iface
;
return
S_OK
;
}
...
...
@@ -951,6 +952,21 @@ static HRESULT WINAPI WebBrowserEvents2_Invoke(IDispatch *iface, DISPID dispIdMe
test_documentcomplete
(
pDispParams
);
break
;
case
DISPID_WINDOWCLOSING
:
{
VARIANT
*
is_child
=
pDispParams
->
rgvarg
+
1
,
*
cancel
=
pDispParams
->
rgvarg
;
CHECK_EXPECT
(
Invoke_WINDOWCLOSING
);
ok
(
pDispParams
->
cArgs
==
2
,
"pdp->cArgs = %d
\n
"
,
pDispParams
->
cArgs
);
ok
(
V_VT
(
is_child
)
==
VT_BOOL
,
"V_VT(is_child) = %d
\n
"
,
V_VT
(
is_child
));
ok
(
!
V_BOOL
(
is_child
),
"V_BOOL(is_child) = %x
\n
"
,
V_BOOL
(
is_child
));
ok
(
V_VT
(
cancel
)
==
(
VT_BYREF
|
VT_BOOL
),
"V_VT(cancel) = %d
\n
"
,
V_VT
(
cancel
));
ok
(
!*
V_BOOLREF
(
cancel
),
"*V_BOOLREF(cancel) = %x
\n
"
,
*
V_BOOLREF
(
cancel
));
*
V_BOOLREF
(
cancel
)
=
VARIANT_TRUE
;
return
S_OK
;
}
case
282
:
/* FIXME */
CHECK_EXPECT2
(
Invoke_282
);
break
;
...
...
@@ -3085,6 +3101,28 @@ static void test_external(IWebBrowser2 *unk)
IDocHostUIHandler2_Release
(
dochost
);
}
static
void
test_htmlwindow_close
(
IWebBrowser2
*
wb
)
{
IHTMLWindow2
*
window
;
IHTMLDocument2
*
doc
;
HRESULT
hres
;
doc
=
get_document
(
wb
);
hres
=
IHTMLDocument2_get_parentWindow
(
doc
,
&
window
);
ok
(
hres
==
S_OK
,
"get_parentWindow failed: %08x
\n
"
,
hres
);
IHTMLDocument2_Release
(
doc
);
SET_EXPECT
(
Invoke_WINDOWCLOSING
);
hres
=
IHTMLWindow2_close
(
window
);
ok
(
hres
==
S_OK
,
"close failed: %08x
\n
"
,
hres
);
CHECK_CALLED
(
Invoke_WINDOWCLOSING
);
IHTMLWindow2_Release
(
window
);
}
static
void
test_TranslateAccelerator
(
IWebBrowser2
*
unk
)
{
IOleClientSite
*
doc_clientsite
;
...
...
@@ -3404,6 +3442,7 @@ static void test_WebBrowser(BOOL do_download, BOOL do_close)
}
test_external
(
webbrowser
);
test_htmlwindow_close
(
webbrowser
);
if
(
do_close
)
test_Close
(
webbrowser
,
do_download
);
...
...
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