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
3e8adc3d
Commit
3e8adc3d
authored
Dec 27, 2006
by
Rob Shearman
Committed by
Alexandre Julliard
Dec 28, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Output the HRESULT for clipboard tests that fail.
parent
214eb389
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
15 deletions
+24
-15
clipboard.c
dlls/ole32/tests/clipboard.c
+24
-15
No files found.
dlls/ole32/tests/clipboard.c
View file @
3e8adc3d
...
...
@@ -320,27 +320,36 @@ static void test_set_clipboard(void)
ULONG
ref
;
LPDATAOBJECT
data1
,
data2
;
hr
=
DataObjectImpl_CreateText
(
"data1"
,
&
data1
);
ok
(
SUCCEEDED
(
hr
),
"Failed to create data1 object:
%d
\n
"
,
hr
);
ok
(
SUCCEEDED
(
hr
),
"Failed to create data1 object:
0x%08x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
return
;
hr
=
DataObjectImpl_CreateText
(
"data2"
,
&
data2
);
ok
(
SUCCEEDED
(
hr
),
"Failed to create data2 object:
%d
\n
"
,
hr
);
ok
(
SUCCEEDED
(
hr
),
"Failed to create data2 object:
0x%08x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
return
;
ok
(
OleSetClipboard
(
data1
)
==
S_OK
,
"failed to set clipboard to data1
\n
"
);
ok
(
OleIsCurrentClipboard
(
data1
)
==
S_OK
,
"expected current clipboard to be data1
\n
"
);
ok
(
OleIsCurrentClipboard
(
data2
)
==
S_FALSE
,
"did not expect current clipboard to be data2
\n
"
);
ok
(
OleSetClipboard
(
data2
)
==
S_OK
,
"failed to set clipboard to data2
\n
"
);
ok
(
OleIsCurrentClipboard
(
data1
)
==
S_FALSE
,
"did not expect current clipboard to be data1
\n
"
);
ok
(
OleIsCurrentClipboard
(
data2
)
==
S_OK
,
"expected current clipboard to be data2
\n
"
);
ok
(
OleFlushClipboard
()
==
S_OK
,
"failed to flush clipboard
\n
"
);
ok
(
OleIsCurrentClipboard
(
data1
)
==
S_FALSE
,
"did not expect current clipboard to be data1
\n
"
);
ok
(
OleIsCurrentClipboard
(
data2
)
==
S_FALSE
,
"did not expect current clipboard to be data2
\n
"
);
ok
(
OleSetClipboard
(
NULL
)
==
S_OK
,
"failed to clear clipboard
\n
"
);
hr
=
OleSetClipboard
(
data1
);
ok
(
hr
==
S_OK
,
"failed to set clipboard to data1, hr = 0x%08x
\n
"
,
hr
);
hr
=
OleIsCurrentClipboard
(
data1
);
ok
(
hr
==
S_OK
,
"expected current clipboard to be data1, hr = 0x%08x
\n
"
,
hr
);
hr
=
OleIsCurrentClipboard
(
data2
);
ok
(
hr
==
S_FALSE
,
"did not expect current clipboard to be data2, hr = 0x%08x
\n
"
,
hr
);
hr
=
OleSetClipboard
(
data2
);
ok
(
hr
==
S_OK
,
"failed to set clipboard to data2, hr = 0x%08x
\n
"
,
hr
);
hr
=
OleIsCurrentClipboard
(
data1
);
ok
(
hr
==
S_FALSE
,
"did not expect current clipboard to be data1, hr = 0x%08x
\n
"
,
hr
);
hr
=
OleIsCurrentClipboard
(
data2
);
ok
(
hr
==
S_OK
,
"expected current clipboard to be data2, hr = 0x%08x
\n
"
,
hr
);
hr
=
OleFlushClipboard
();
ok
(
hr
==
S_OK
,
"failed to flush clipboard, hr = 0x%08x
\n
"
,
hr
);
hr
=
OleIsCurrentClipboard
(
data1
);
ok
(
hr
==
S_FALSE
,
"did not expect current clipboard to be data1, hr = 0x%08x
\n
"
,
hr
);
hr
=
OleIsCurrentClipboard
(
data2
);
ok
(
hr
==
S_FALSE
,
"did not expect current clipboard to be data2, hr = 0x%08x
\n
"
,
hr
);
ok
(
OleSetClipboard
(
NULL
)
==
S_OK
,
"failed to clear clipboard, hr = 0x%08x
\n
"
,
hr
);
ref
=
IDataObject_Release
(
data1
);
ok
(
ref
==
0
,
"expected data1 ref=0, got %d
\n
"
,
ref
);
...
...
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