Commit 38c5185d authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

ole32: Add tests for OleIsCurrentClipboard(NULL).

parent 271ee483
...@@ -451,6 +451,8 @@ static void test_set_clipboard(void) ...@@ -451,6 +451,8 @@ static void test_set_clipboard(void)
ok(hr == S_OK, "expected current clipboard to be data1, hr = 0x%08x\n", hr); ok(hr == S_OK, "expected current clipboard to be data1, hr = 0x%08x\n", hr);
hr = OleIsCurrentClipboard(data2); hr = OleIsCurrentClipboard(data2);
ok(hr == S_FALSE, "did not expect current clipboard to be data2, hr = 0x%08x\n", hr); ok(hr == S_FALSE, "did not expect current clipboard to be data2, hr = 0x%08x\n", hr);
hr = OleIsCurrentClipboard(NULL);
ok(hr == S_FALSE, "expect S_FALSE, hr = 0x%08x\n", hr);
test_get_clipboard(); test_get_clipboard();
...@@ -460,6 +462,8 @@ static void test_set_clipboard(void) ...@@ -460,6 +462,8 @@ static void test_set_clipboard(void)
ok(hr == S_FALSE, "did not expect current clipboard to be data1, hr = 0x%08x\n", hr); ok(hr == S_FALSE, "did not expect current clipboard to be data1, hr = 0x%08x\n", hr);
hr = OleIsCurrentClipboard(data2); hr = OleIsCurrentClipboard(data2);
ok(hr == S_OK, "expected current clipboard to be data2, hr = 0x%08x\n", hr); ok(hr == S_OK, "expected current clipboard to be data2, hr = 0x%08x\n", hr);
hr = OleIsCurrentClipboard(NULL);
ok(hr == S_FALSE, "expect S_FALSE, hr = 0x%08x\n", hr);
hr = OleFlushClipboard(); hr = OleFlushClipboard();
ok(hr == S_OK, "failed to flush clipboard, hr = 0x%08x\n", hr); ok(hr == S_OK, "failed to flush clipboard, hr = 0x%08x\n", hr);
...@@ -467,6 +471,8 @@ static void test_set_clipboard(void) ...@@ -467,6 +471,8 @@ static void test_set_clipboard(void)
ok(hr == S_FALSE, "did not expect current clipboard to be data1, hr = 0x%08x\n", hr); ok(hr == S_FALSE, "did not expect current clipboard to be data1, hr = 0x%08x\n", hr);
hr = OleIsCurrentClipboard(data2); hr = OleIsCurrentClipboard(data2);
ok(hr == S_FALSE, "did not expect current clipboard to be data2, hr = 0x%08x\n", hr); ok(hr == S_FALSE, "did not expect current clipboard to be data2, hr = 0x%08x\n", hr);
hr = OleIsCurrentClipboard(NULL);
todo_wine ok(hr == S_FALSE, "expect S_FALSE, hr = 0x%08x\n", hr);
ok(OleSetClipboard(NULL) == S_OK, "failed to clear clipboard, hr = 0x%08x\n", hr); ok(OleSetClipboard(NULL) == S_OK, "failed to clear clipboard, hr = 0x%08x\n", hr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment