Commit fdeab061 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

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

parent 603ccca8
...@@ -86,7 +86,9 @@ static void verify_region(HRGN hrgn, const RECT *rc) ...@@ -86,7 +86,9 @@ static void verify_region(HRGN hrgn, const RECT *rc)
{ {
rect = (const RECT *)rgn.data.Buffer; rect = (const RECT *)rgn.data.Buffer;
trace("rect (%d,%d-%d,%d)\n", rect->left, rect->top, rect->right, rect->bottom); 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); 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) ...@@ -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.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(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) static void test_getregiondata(void)
......
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