Dmitry Timoshkov : gdiplus/tests: Add a test for GdipTransformRegion with an empty region path.
Alexandre Julliard
julliard at winehq.org
Tue Sep 24 15:16:48 CDT 2013
Module: wine
Branch: master
Commit: 3870e5b25584a3d48b852bb6cc09a13fc7091916
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3870e5b25584a3d48b852bb6cc09a13fc7091916
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Tue Sep 24 11:25:12 2013 +0900
gdiplus/tests: Add a test for GdipTransformRegion with an empty region path.
---
dlls/gdiplus/tests/region.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/dlls/gdiplus/tests/region.c b/dlls/gdiplus/tests/region.c
index a254bed..7d20c3c 100644
--- a/dlls/gdiplus/tests/region.c
+++ b/dlls/gdiplus/tests/region.c
@@ -117,6 +117,7 @@ static void test_getregiondata(void)
DWORD buf[100];
GpRect rect;
GpPath *path;
+ GpMatrix *matrix;
memset(buf, 0xee, sizeof(buf));
@@ -376,6 +377,14 @@ static void test_getregiondata(void)
ok((*(buf + 8) & (~ 0x00004000)) == 0x00000000,
"expected 00000000 got %08x\n", *(buf + 8) & (~ 0x00004000));
+ /* Transform an empty region */
+ status = GdipCreateMatrix(&matrix);
+ expect(Ok, status);
+ status = GdipTransformRegion(region, matrix);
+todo_wine
+ expect(Ok, status);
+ GdipDeleteMatrix(matrix);
+
status = GdipDeleteRegion(region);
expect(Ok, status);
More information about the wine-cvs
mailing list