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
38436fff
Commit
38436fff
authored
Apr 13, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml/tests: Added IMarshal and IManagedObject QueryInterface tests.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
66fce989
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
14 deletions
+24
-14
dom.c
dlls/mshtml/tests/dom.c
+23
-14
htmldoc.c
dlls/mshtml/tests/htmldoc.c
+1
-0
No files found.
dlls/mshtml/tests/dom.c
View file @
38436fff
...
...
@@ -36,6 +36,7 @@
#include "objsafe.h"
#include "htiface.h"
#include "tlogstg.h"
#include "mscoree.h"
static
INT
(
WINAPI
*
pLCIDToLocaleName
)(
LCID
,
LPWSTR
,
INT
,
DWORD
);
static
LANGID
(
WINAPI
*
pGetUserDefaultUILanguage
)(
void
);
...
...
@@ -686,32 +687,40 @@ static void _test_disp_value(unsigned line, IUnknown *unk, const char *val)
VariantClear
(
&
var
);
}
#define test_disp(u,id,v) _test_disp(__LINE__,u,id,v)
static
void
_test_disp
(
unsigned
line
,
IUnknown
*
unk
,
const
IID
*
diid
,
const
char
*
val
)
{
IID
iid
;
if
(
_test_get_dispid
(
line
,
unk
,
&
iid
))
ok_
(
__FILE__
,
line
)
(
IsEqualGUID
(
&
iid
,
diid
),
"unexpected guid %s
\n
"
,
wine_dbgstr_guid
(
&
iid
));
if
(
val
)
_test_disp_value
(
line
,
unk
,
val
);
}
#define test_disp2(u,id,id2,v) _test_disp2(__LINE__,u,id,id2,v)
static
void
_test_disp2
(
unsigned
line
,
IUnknown
*
unk
,
const
IID
*
diid
,
const
IID
*
diid2
,
const
char
*
val
)
{
IUnknown
*
u
;
IID
iid
;
HRESULT
hres
;
if
(
_test_get_dispid
(
line
,
unk
,
&
iid
))
ok_
(
__FILE__
,
line
)
(
IsEqualGUID
(
&
iid
,
diid
)
||
broken
(
IsEqualGUID
(
&
iid
,
diid2
)),
ok_
(
__FILE__
,
line
)
(
IsEqualGUID
(
&
iid
,
diid
)
||
broken
(
diid2
&&
IsEqualGUID
(
&
iid
,
diid2
)),
"unexpected guid %s
\n
"
,
wine_dbgstr_guid
(
&
iid
));
if
(
!
IsEqualGUID
(
diid
,
&
DIID_DispHTMLWindow2
)
&&
!
IsEqualGUID
(
diid
,
&
DIID_DispHTMLLocation
))
{
u
=
(
void
*
)
0xdeadbeef
;
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IMarshal
,
(
void
**
)
&
u
);
ok_
(
__FILE__
,
line
)(
hres
==
E_NOINTERFACE
,
"Got IMarshal iface
\n
"
);
ok_
(
__FILE__
,
line
)(
!
u
,
"u = %p
\n
"
,
u
);
}
u
=
(
void
*
)
0xdeadbeef
;
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IManagedObject
,
(
void
**
)
&
u
);
ok_
(
__FILE__
,
line
)(
hres
==
E_NOINTERFACE
,
"Got IManagedObject iface
\n
"
);
ok_
(
__FILE__
,
line
)(
!
u
,
"u = %p
\n
"
,
u
);
if
(
val
)
_test_disp_value
(
line
,
unk
,
val
);
}
#define test_class_info(u) _test_class_info(__LINE__,u)
#define test_disp(u,id,v) _test_disp(__LINE__,u,id,v)
static
void
_test_disp
(
unsigned
line
,
IUnknown
*
unk
,
const
IID
*
diid
,
const
char
*
val
)
{
return
_test_disp2
(
line
,
unk
,
diid
,
NULL
,
val
);
}
#define test_class_info(id) _test_class_info(__LINE__,id)
static
void
_test_class_info
(
unsigned
line
,
IUnknown
*
unk
)
{
IProvideClassInfo
*
classinfo
;
...
...
dlls/mshtml/tests/htmldoc.c
View file @
38436fff
...
...
@@ -45,6 +45,7 @@
#include "tlogstg.h"
#include "exdispid.h"
#include "mshtml_test.h"
#include "mscoree.h"
DEFINE_GUID
(
GUID_NULL
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
);
DEFINE_GUID
(
IID_IProxyManager
,
0x00000008
,
0x0000
,
0x0000
,
0xc0
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x46
);
...
...
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