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
a7561564
Commit
a7561564
authored
Nov 30, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 01, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLElement2::get_readyState test.
parent
9881ec35
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
htmldoc.c
dlls/mshtml/tests/htmldoc.c
+21
-0
No files found.
dlls/mshtml/tests/htmldoc.c
View file @
a7561564
...
...
@@ -2638,6 +2638,7 @@ static void _test_readyState(unsigned line, IUnknown *unk)
{
IHTMLDocument2
*
htmldoc
;
DISPPARAMS
dispparams
;
IHTMLElement
*
elem
;
BSTR
state
;
VARIANT
out
;
HRESULT
hres
;
...
...
@@ -2673,6 +2674,26 @@ static void _test_readyState(unsigned line, IUnknown *unk)
wine_dbgstr_w
(
state
),
load_state
);
SysFreeString
(
state
);
hres
=
IHTMLDocument2_get_body
(
htmldoc
,
&
elem
);
ok_
(
__FILE__
,
line
)(
hres
==
S_OK
,
"get_body failed: %08x
\n
"
,
hres
);
if
(
elem
)
{
IHTMLElement2
*
elem2
;
VARIANT
var
;
hres
=
IHTMLElement_QueryInterface
(
elem
,
&
IID_IHTMLElement2
,
(
void
**
)
&
elem2
);
IHTMLElement_Release
(
elem
);
ok
(
hres
==
S_OK
,
"Could not get IHTMLElement2 iface: %08x
\n
"
,
hres
);
hres
=
IHTMLElement2_get_readyState
(
elem2
,
&
var
);
IHTMLElement2_Release
(
elem2
);
ok
(
hres
==
S_OK
,
"get_readyState failed: %08x
\n
"
,
hres
);
ok
(
V_VT
(
&
var
)
==
VT_BSTR
,
"V_VT(state) = %d
\n
"
,
V_VT
(
&
var
));
ok
(
!
strcmp_wa
(
V_BSTR
(
&
var
),
"complete"
),
"unexpected body state %s
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
&
var
)));
VariantClear
(
&
var
);
}
else
{
ok_
(
__FILE__
,
line
)(
load_state
!=
LD_COMPLETE
,
"body is NULL in complete state
\n
"
);
}
dispparams
.
cArgs
=
0
;
dispparams
.
cNamedArgs
=
0
;
dispparams
.
rgdispidNamedArgs
=
NULL
;
...
...
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