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
7c63087a
Commit
7c63087a
authored
Apr 21, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added navigator's IDispatchEx test.
parent
d0ddece8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
dom.c
dlls/mshtml/tests/dom.c
+37
-0
No files found.
dlls/mshtml/tests/dom.c
View file @
7c63087a
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
#include "mshtmcid.h"
#include "mshtmcid.h"
#include "mshtmhst.h"
#include "mshtmhst.h"
#include "docobj.h"
#include "docobj.h"
#include "dispex.h"
static
const
char
doc_blank
[]
=
"<html></html>"
;
static
const
char
doc_blank
[]
=
"<html></html>"
;
static
const
char
doc_str1
[]
=
"<html><body>test</body></html>"
;
static
const
char
doc_str1
[]
=
"<html><body>test</body></html>"
;
...
@@ -268,6 +269,41 @@ static void _test_ifaces(unsigned line, IUnknown *iface, REFIID *iids)
...
@@ -268,6 +269,41 @@ static void _test_ifaces(unsigned line, IUnknown *iface, REFIID *iids)
}
}
}
}
#define test_disp(u,id) _test_disp(__LINE__,u,id)
static
void
_test_disp
(
unsigned
line
,
IUnknown
*
unk
,
const
IID
*
diid
)
{
IDispatchEx
*
dispex
;
ITypeInfo
*
typeinfo
;
UINT
ticnt
;
HRESULT
hres
;
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IDispatchEx
,
(
void
**
)
&
dispex
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"Could not get IDispatch: %08x
\n
"
,
hres
);
if
(
FAILED
(
hres
))
return
;
ticnt
=
0xdeadbeef
;
hres
=
IDispatchEx_GetTypeInfoCount
(
dispex
,
&
ticnt
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"GetTypeInfoCount failed: %08x
\n
"
,
hres
);
ok_
(
__FILE__
,
line
)
(
ticnt
==
1
,
"ticnt=%u
\n
"
,
ticnt
);
hres
=
IDispatchEx_GetTypeInfo
(
dispex
,
0
,
0
,
&
typeinfo
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"GetTypeInfo failed: %08x
\n
"
,
hres
);
if
(
SUCCEEDED
(
hres
))
{
TYPEATTR
*
type_attr
;
hres
=
ITypeInfo_GetTypeAttr
(
typeinfo
,
&
type_attr
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"GetTypeAttr failed: %08x
\n
"
,
hres
);
ok_
(
__FILE__
,
line
)
(
IsEqualGUID
(
&
type_attr
->
guid
,
diid
),
"unexpected guid %s
\n
"
,
dbgstr_guid
(
&
type_attr
->
guid
));
ITypeInfo_ReleaseTypeAttr
(
typeinfo
,
type_attr
);
ITypeInfo_Release
(
typeinfo
);
}
IDispatchEx_Release
(
dispex
);
}
#define test_node_name(u,n) _test_node_name(__LINE__,u,n)
#define test_node_name(u,n) _test_node_name(__LINE__,u,n)
static
void
_test_node_name
(
unsigned
line
,
IUnknown
*
unk
,
const
char
*
exname
)
static
void
_test_node_name
(
unsigned
line
,
IUnknown
*
unk
,
const
char
*
exname
)
{
{
...
@@ -1050,6 +1086,7 @@ static void test_navigator(IHTMLDocument2 *doc)
...
@@ -1050,6 +1086,7 @@ static void test_navigator(IHTMLDocument2 *doc)
hres
=
IHTMLWindow2_get_navigator
(
window
,
&
navigator
);
hres
=
IHTMLWindow2_get_navigator
(
window
,
&
navigator
);
ok
(
hres
==
S_OK
,
"get_navigator failed: %08x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"get_navigator failed: %08x
\n
"
,
hres
);
ok
(
navigator
!=
NULL
,
"navigator == NULL
\n
"
);
ok
(
navigator
!=
NULL
,
"navigator == NULL
\n
"
);
test_disp
((
IUnknown
*
)
navigator
,
&
IID_IOmNavigator
);
hres
=
IHTMLWindow2_get_navigator
(
window
,
&
navigator2
);
hres
=
IHTMLWindow2_get_navigator
(
window
,
&
navigator2
);
ok
(
hres
==
S_OK
,
"get_navigator failed: %08x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"get_navigator failed: %08x
\n
"
,
hres
);
...
...
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