user32/tests: Test getting the data from synthesized clipboard formats.
Alexander Scott-Johns
alexander.scott.johns at googlemail.com
Fri Jan 28 07:36:03 CST 2011
This patch is independent of my earlier patch to winex11.
-------------- next part --------------
From 4f2a4f84be0733e4faeb037f6ca53eb1521b2705 Mon Sep 17 00:00:00 2001
From: Alexander Scott-Johns <alexander.scott.johns at googlemail.com>
Date: Fri, 28 Jan 2011 13:05:29 +0000
Subject: user32/tests: Test getting the data from synthesized clipboard formats.
---
dlls/user32/tests/clipboard.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/dlls/user32/tests/clipboard.c b/dlls/user32/tests/clipboard.c
index 5b0f17e..781334e 100644
--- a/dlls/user32/tests/clipboard.c
+++ b/dlls/user32/tests/clipboard.c
@@ -216,6 +216,7 @@ static void test_synthesized(void)
HENHMETAFILE emf;
BOOL r;
UINT cf;
+ HANDLE data;
htext = create_text();
emf = create_emf();
@@ -235,15 +236,21 @@ static void test_synthesized(void)
ok(r, "gle %d\n", GetLastError());
cf = EnumClipboardFormats(0);
ok(cf == CF_TEXT, "cf %08x\n", cf);
+ data = GetClipboardData(cf);
+ ok(data != NULL, "couldn't get data, cf %08x\n", cf);
cf = EnumClipboardFormats(cf);
ok(cf == CF_ENHMETAFILE, "cf %08x\n", cf);
+ data = GetClipboardData(cf);
+ ok(data != NULL, "couldn't get data, cf %08x\n", cf);
cf = EnumClipboardFormats(cf);
todo_wine ok(cf == CF_LOCALE, "cf %08x\n", cf);
if(cf == CF_LOCALE)
cf = EnumClipboardFormats(cf);
ok(cf == CF_OEMTEXT, "cf %08x\n", cf);
+ data = GetClipboardData(cf);
+ ok(data != NULL, "couldn't get data, cf %08x\n", cf);
cf = EnumClipboardFormats(cf);
ok(cf == CF_UNICODETEXT ||
@@ -253,6 +260,8 @@ static void test_synthesized(void)
if(cf == CF_UNICODETEXT)
cf = EnumClipboardFormats(cf);
ok(cf == CF_METAFILEPICT, "cf %08x\n", cf);
+ data = GetClipboardData(cf);
+ todo_wine ok(data != NULL, "couldn't get data, cf %08x\n", cf);
cf = EnumClipboardFormats(cf);
ok(cf == 0, "cf %08x\n", cf);
--
1.7.0.4
More information about the wine-patches
mailing list