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
d7e75747
Commit
d7e75747
authored
Jun 24, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 25, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added more QueryInterface tests.
parent
1534267b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
htmldoc.c
dlls/mshtml/tests/htmldoc.c
+14
-3
No files found.
dlls/mshtml/tests/htmldoc.c
View file @
d7e75747
...
...
@@ -3406,12 +3406,23 @@ static void test_StreamLoad(IUnknown *unk)
static
void
test_QueryInterface
(
IUnknown
*
unk
)
{
I
RunnableObject
*
runnable
=
(
IRunnableObject
*
)
0xdeadbeef
;
I
Unknown
*
qi
;
HRESULT
hres
;
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IRunnableObject
,
(
void
**
)
&
runnable
);
qi
=
(
void
*
)
0xdeadbeef
;
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IRunnableObject
,
(
void
**
)
&
qi
);
ok
(
hres
==
E_NOINTERFACE
,
"QueryInterface returned %08x, expected E_NOINTERFACE
\n
"
,
hres
);
ok
(
runnable
==
NULL
,
"runnable=%p, ezpected NULL
\n
"
,
runnable
);
ok
(
qi
==
NULL
,
"runnable=%p, ezpected NULL
\n
"
,
qi
);
qi
=
(
void
*
)
0xdeadbeef
;
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IHTMLDOMNode
,
(
void
**
)
&
qi
);
ok
(
hres
==
E_NOINTERFACE
,
"QueryInterface returned %08x, expected E_NOINTERFACE
\n
"
,
hres
);
ok
(
qi
==
NULL
,
"runnable=%p, ezpected NULL
\n
"
,
qi
);
qi
=
(
void
*
)
0xdeadbeef
;
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IHTMLDOMNode2
,
(
void
**
)
&
qi
);
ok
(
hres
==
E_NOINTERFACE
,
"QueryInterface returned %08x, expected E_NOINTERFACE
\n
"
,
hres
);
ok
(
qi
==
NULL
,
"runnable=%p, ezpected NULL
\n
"
,
qi
);
}
static
void
init_test
(
enum
load_state_t
ls
)
{
...
...
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