Module: wine Branch: master Commit: 1e9d40e6019082a16b4c1b5a9feb4898618bf331 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1e9d40e6019082a16b4c1b5a9f...
Author: Piotr Caban piotr@codeweavers.com Date: Tue May 16 17:57:59 2017 +0200
user32: Test clipboard sequence number for synthesized data.
Signed-off-by: Piotr Caban piotr@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/user32/tests/clipboard.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/dlls/user32/tests/clipboard.c b/dlls/user32/tests/clipboard.c index 02cd7b3..367d337 100644 --- a/dlls/user32/tests/clipboard.c +++ b/dlls/user32/tests/clipboard.c @@ -597,7 +597,7 @@ static void test_synthesized(void) HGLOBAL h, htext; HENHMETAFILE emf; BOOL r; - UINT cf, i, j, count, rendered; + UINT cf, i, j, count, rendered, seq, old_seq; HANDLE data; HWND hwnd;
@@ -762,10 +762,14 @@ static void test_synthesized(void) ok(cf == tests[i].expected[j], "%u.%u: got %04x instead of %04x\n", i, j, cf, tests[i].expected[j] ); if (cf != tests[i].expected[j]) break; + old_seq = GetClipboardSequenceNumber(); data = GetClipboardData( cf ); ok(data != NULL || broken( tests[i].format == CF_DIBV5 && cf == CF_DIB ), /* >= Vista */ "%u: couldn't get data, cf %04x err %d\n", i, cf, GetLastError()); + seq = GetClipboardSequenceNumber(); + todo_wine_if(cf != tests[i].format && cf != CF_LOCALE) + ok(seq == old_seq, "sequence changed (test %d %d)\n", i, cf); switch (cf) { case CF_LOCALE: