Huw Davies : user32: Add a test for CS_OWNDC windows that are created invisible.
Alexandre Julliard
julliard at winehq.org
Fri Feb 22 05:49:28 CST 2008
Module: wine
Branch: master
Commit: 503009cf37e9223a887c59936ba89d6d6aa11572
URL: http://source.winehq.org/git/wine.git/?a=commit;h=503009cf37e9223a887c59936ba89d6d6aa11572
Author: Huw Davies <huw at codeweavers.com>
Date: Thu Feb 21 13:39:42 2008 +0000
user32: Add a test for CS_OWNDC windows that are created invisible.
---
dlls/user32/tests/dce.c | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/dlls/user32/tests/dce.c b/dlls/user32/tests/dce.c
index 72cd3fa..c9b5fc9 100644
--- a/dlls/user32/tests/dce.c
+++ b/dlls/user32/tests/dce.c
@@ -375,6 +375,23 @@ static void test_begin_paint(void)
"clip box should have been reset %d,%d-%d,%d\n", rect.left, rect.top, rect.right, rect.bottom );
}
+static void test_invisible_create(void)
+{
+ HWND hwnd_owndc = CreateWindowA("owndc_class", NULL, WS_OVERLAPPED,
+ 0, 200, 100, 100,
+ 0, 0, GetModuleHandleA(0), NULL );
+ HDC dc1, dc2;
+
+ dc1 = GetDC(hwnd_owndc);
+ dc2 = GetDC(hwnd_owndc);
+
+todo_wine
+ ok(dc1 == dc2, "expected owndc dcs to match\n");
+
+ ReleaseDC(hwnd_owndc, dc2);
+ ReleaseDC(hwnd_owndc, dc1);
+ DestroyWindow(hwnd_owndc);
+}
START_TEST(dce)
{
@@ -414,4 +431,5 @@ START_TEST(dce)
test_parameters();
test_dc_visrgn();
test_begin_paint();
+ test_invisible_create();
}
More information about the wine-cvs
mailing list