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
f8a1b7e5
Commit
f8a1b7e5
authored
Apr 16, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Apr 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Tests that show the consumer data object isn't a singleton.
parent
4311691a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
0 deletions
+51
-0
clipboard.c
dlls/ole32/tests/clipboard.c
+51
-0
No files found.
dlls/ole32/tests/clipboard.c
View file @
f8a1b7e5
...
...
@@ -862,8 +862,59 @@ static void test_set_clipboard(void)
OleUninitialize
();
}
static
void
test_consumer_refs
(
void
)
{
HRESULT
hr
;
IDataObject
*
src
,
*
get1
,
*
get2
,
*
get3
;
LONG
refs
;
OleInitialize
(
NULL
);
hr
=
DataObjectImpl_CreateText
(
"data1"
,
&
src
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
hr
=
OleSetClipboard
(
src
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
hr
=
OleGetClipboard
(
&
get1
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
hr
=
OleGetClipboard
(
&
get2
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
get1
==
get2
,
"data objects differ
\n
"
);
refs
=
IDataObject_Release
(
get2
);
todo_wine
ok
(
refs
==
1
,
"got %d
\n
"
,
refs
);
OleFlushClipboard
();
hr
=
OleGetClipboard
(
&
get2
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
todo_wine
ok
(
get1
!=
get2
,
"data objects match
\n
"
);
OleSetClipboard
(
NULL
);
hr
=
OleGetClipboard
(
&
get3
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
todo_wine
{
ok
(
get1
!=
get3
,
"data objects match
\n
"
);
ok
(
get2
!=
get3
,
"data objects match
\n
"
);
}
IDataObject_Release
(
get3
);
IDataObject_Release
(
get2
);
IDataObject_Release
(
get1
);
IDataObject_Release
(
src
);
OleUninitialize
();
}
START_TEST
(
clipboard
)
{
test_set_clipboard
();
test_consumer_refs
();
}
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