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
383dbeed
Commit
383dbeed
authored
May 31, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 01, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20/tests: Small test for GetClientSite().
parent
b2e13bc6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
richole.c
dlls/riched20/tests/richole.c
+13
-6
No files found.
dlls/riched20/tests/richole.c
View file @
383dbeed
...
...
@@ -1473,7 +1473,7 @@ static void test_ITextSelection_Collapse(void)
ITextSelection_Release
(
txtSel
);
}
static
void
test_
IOleClientSite_QueryInterfac
e
(
void
)
static
void
test_
GetClientSit
e
(
void
)
{
HWND
w
;
IRichEditOle
*
reOle
=
NULL
,
*
reOle1
=
NULL
;
...
...
@@ -1487,17 +1487,24 @@ static void test_IOleClientSite_QueryInterface(void)
create_interfaces
(
&
w
,
&
reOle
,
&
txtDoc
,
NULL
);
hres
=
IRichEditOle_GetClientSite
(
reOle
,
&
clientSite
);
ok
(
hres
==
S_OK
,
"IRichEditOle_QueryInterface: 0x%08x
\n
"
,
hres
);
refcount1
=
get_refcount
((
IUnknown
*
)
clientSite
);
todo_wine
ok
(
refcount1
==
1
,
"got wrong ref count: %d
\n
"
,
refcount1
);
todo_wine
EXPECT_REF
(
clientSite
,
1
);
hres
=
IOleClientSite_QueryInterface
(
clientSite
,
&
IID_IRichEditOle
,
(
void
**
)
&
reOle1
);
ok
(
hres
==
E_NOINTERFACE
,
"IOleClientSite_QueryInterface: %x
\n
"
,
hres
);
hres
=
IRichEditOle_GetClientSite
(
reOle
,
&
clientSite1
);
ok
(
hres
==
S_OK
,
"got 0x%08x
\n
"
,
hres
);
todo_wine
ok
(
clientSite
!=
clientSite1
,
"got %p, %p
\n
"
,
clientSite
,
clientSite1
);
IOleClientSite_Release
(
clientSite1
);
hres
=
IOleClientSite_QueryInterface
(
clientSite
,
&
IID_IOleClientSite
,
(
void
**
)
&
clientSite1
);
ok
(
hres
==
S_OK
,
"IOleClientSite_QueryInterface: 0x%08x
\n
"
,
hres
);
ok
(
clientSite
==
clientSite1
,
"Should not return a new pointer.
\n
"
);
refcount1
=
get_refcount
((
IUnknown
*
)
clientSite
);
todo_wine
ok
(
refcount1
==
2
,
"got wrong ref count: %d
\n
"
,
refcount1
);
todo_wine
EXPECT_REF
(
clientSite
,
2
);
/* IOleWindow interface */
hres
=
IOleClientSite_QueryInterface
(
clientSite
,
&
IID_IOleWindow
,
(
void
**
)
&
oleWin
);
...
...
@@ -3087,7 +3094,7 @@ START_TEST(richole)
test_ITextRange_GetStart_GetEnd
();
test_ITextRange_GetDuplicate
();
test_ITextRange_Collapse
();
test_
IOleClientSite_QueryInterfac
e
();
test_
GetClientSit
e
();
test_IOleWindow_GetWindow
();
test_IOleInPlaceSite_GetWindow
();
test_GetFont
();
...
...
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