Module: wine Branch: master Commit: 8134b93516912e080e8057d13e2e98b7f7e7fe1b URL: http://source.winehq.org/git/wine.git/?a=commit;h=8134b93516912e080e8057d13e...
Author: André Hentschel nerv@dawncrow.de Date: Tue Aug 9 19:17:12 2011 +0200
gdi32/tests: Consistently print out all infos about non-equal rects.
---
dlls/gdi32/tests/dc.c | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/dlls/gdi32/tests/dc.c b/dlls/gdi32/tests/dc.c index 5017583..c173cef 100644 --- a/dlls/gdi32/tests/dc.c +++ b/dlls/gdi32/tests/dc.c @@ -107,7 +107,10 @@ todo_wine ret = GetClipBox(hdc, &rc_clip); ok(ret == SIMPLEREGION || broken(ret == COMPLEXREGION), "GetClipBox returned %d instead of SIMPLEREGION\n", ret); SetRect(&rc, 0, 0, 50, 50); - ok(EqualRect(&rc, &rc_clip), "rects are not equal\n"); + ok(EqualRect(&rc, &rc_clip), + "rects are not equal: (%d,%d-%d,%d) - (%d,%d-%d,%d)\n", + rc.left, rc.top, rc.right, rc.bottom, + rc_clip.left, rc_clip.top, rc_clip.right, rc_clip.bottom);
ret = RestoreDC(hdc, 1); ok(ret, "ret = %d\n", ret); @@ -115,7 +118,10 @@ todo_wine ret = GetClipBox(hdc, &rc_clip); ok(ret == SIMPLEREGION || broken(ret == COMPLEXREGION), "GetClipBox returned %d instead of SIMPLEREGION\n", ret); SetRect(&rc, 0, 0, 100, 100); - ok(EqualRect(&rc, &rc_clip), "rects are not equal\n"); + ok(EqualRect(&rc, &rc_clip), + "rects are not equal: (%d,%d-%d,%d) - (%d,%d-%d,%d)\n", + rc.left, rc.top, rc.right, rc.bottom, + rc_clip.left, rc_clip.top, rc_clip.right, rc_clip.bottom);
DeleteObject(hrgn); ReleaseDC(hwnd, hdc);