gdiplus/tests: Print actual rectangle extents if the tests fail.

This commit is contained in:
Dmitry Timoshkov 2013-09-24 11:23:48 +09:00 committed by Alexandre Julliard
parent 603ccca889
commit fdeab06142
1 changed files with 6 additions and 2 deletions

View File

@ -86,7 +86,9 @@ static void verify_region(HRGN hrgn, const RECT *rc)
{
rect = (const RECT *)rgn.data.Buffer;
trace("rect (%d,%d-%d,%d)\n", rect->left, rect->top, rect->right, rect->bottom);
ok(EqualRect(rect, rc), "rects don't match\n");
ok(EqualRect(rect, rc), "expected (%d,%d)-(%d,%d), got (%d,%d)-(%d,%d)\n",
rc->left, rc->top, rc->right, rc->bottom,
rect->left, rect->top, rect->right, rect->bottom);
}
ok(rgn.data.rdh.dwSize == sizeof(rgn.data.rdh), "expected sizeof(rdh), got %u\n", rgn.data.rdh.dwSize);
@ -101,7 +103,9 @@ static void verify_region(HRGN hrgn, const RECT *rc)
ok(rgn.data.rdh.nCount == 1, "expected 1, got %u\n", rgn.data.rdh.nCount);
ok(rgn.data.rdh.nRgnSize == sizeof(RECT), "expected sizeof(RECT), got %u\n", rgn.data.rdh.nRgnSize);
}
ok(EqualRect(&rgn.data.rdh.rcBound, rc), "rects don't match\n");
ok(EqualRect(&rgn.data.rdh.rcBound, rc), "expected (%d,%d)-(%d,%d), got (%d,%d)-(%d,%d)\n",
rc->left, rc->top, rc->right, rc->bottom,
rgn.data.rdh.rcBound.left, rgn.data.rdh.rcBound.top, rgn.data.rdh.rcBound.right, rgn.data.rdh.rcBound.bottom);
}
static void test_getregiondata(void)