gdiplus/tests: Add a test for GdipTransformRegion with an empty region path.

This commit is contained in:
Dmitry Timoshkov 2013-09-24 11:25:12 +09:00 committed by Alexandre Julliard
parent 108873320c
commit 3870e5b255
1 changed files with 9 additions and 0 deletions

View File

@ -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);