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
79e2f0c4
Commit
79e2f0c4
authored
Apr 28, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
May 05, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added test of connection points.
parent
bde8aa58
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
0 deletions
+48
-0
htmldoc.c
dlls/mshtml/tests/htmldoc.c
+48
-0
No files found.
dlls/mshtml/tests/htmldoc.c
View file @
79e2f0c4
...
...
@@ -1255,6 +1255,53 @@ static LRESULT WINAPI wnd_proc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam
return
DefWindowProc
(
hwnd
,
msg
,
wParam
,
lParam
);
}
static
void
test_ConnectionPoint
(
IConnectionPointContainer
*
container
,
REFIID
riid
)
{
IConnectionPointContainer
*
tmp_container
=
NULL
;
IConnectionPoint
*
cp
;
IID
iid
;
HRESULT
hres
;
hres
=
IConnectionPointContainer_FindConnectionPoint
(
container
,
riid
,
&
cp
);
ok
(
hres
==
S_OK
,
"FindConnectionPoint failed: %08lx
\n
"
,
hres
);
if
(
FAILED
(
hres
))
return
;
hres
=
IConnectionPoint_GetConnectionInterface
(
cp
,
&
iid
);
ok
(
hres
==
S_OK
,
"GetConnectionInterface failed: %08lx
\n
"
,
hres
);
ok
(
IsEqualGUID
(
riid
,
&
iid
),
"wrong iid
\n
"
);
hres
=
IConnectionPoint_GetConnectionInterface
(
cp
,
NULL
);
ok
(
hres
==
E_POINTER
,
"GetConnectionInterface failed: %08lx, expected E_POINTER
\n
"
,
hres
);
hres
=
IConnectionPoint_GetConnectionPointContainer
(
cp
,
&
tmp_container
);
ok
(
hres
==
S_OK
,
"GetConnectionPointContainer failed: %08lx
\n
"
,
hres
);
ok
(
tmp_container
==
container
,
"container != tmp_container
\n
"
);
if
(
SUCCEEDED
(
hres
))
IConnectionPointContainer_Release
(
tmp_container
);
hres
=
IConnectionPoint_GetConnectionPointContainer
(
cp
,
NULL
);
ok
(
hres
==
E_POINTER
,
"GetConnectionPointContainer failed: %08lx, expected E_POINTER
\n
"
,
hres
);
IConnectionPoint_Release
(
cp
);
}
static
void
test_ConnectionPointContainer
(
IUnknown
*
unk
)
{
IConnectionPointContainer
*
container
;
HRESULT
hres
;
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IConnectionPointContainer
,
(
void
**
)
&
container
);
ok
(
hres
==
S_OK
,
"QueryInterface(IID_IConnectionPointContainer) failed: %08lx
\n
"
,
hres
);
if
(
FAILED
(
hres
))
return
;
test_ConnectionPoint
(
container
,
&
DIID_HTMLDocumentEvents
);
test_ConnectionPoint
(
container
,
&
DIID_HTMLDocumentEvents2
);
IConnectionPointContainer_Release
(
container
);
}
static
void
test_Load
(
IPersistMoniker
*
persist
)
{
IMoniker
*
mon
;
...
...
@@ -1927,6 +1974,7 @@ static void test_HTMLDocument(void)
if
(
FAILED
(
hres
))
return
;
test_ConnectionPointContainer
(
unk
);
test_Persist
(
unk
);
if
(
load_state
==
LD_NO
)
test_OnAmbientPropertyChange2
(
unk
);
...
...
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