Module: wine Branch: master Commit: dc5dd6ac0af8c7baf67bd8354d0549e3d7840730 URL: http://source.winehq.org/git/wine.git/?a=commit;h=dc5dd6ac0af8c7baf67bd8354d...
Author: Michael Stefaniuc mstefani@redhat.de Date: Sat Jul 9 13:58:55 2016 +0200
explorerframe/tests: Use EqualRect() instead of open coding it.
Signed-off-by: Michael Stefaniuc mstefani@redhat.de Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/explorerframe/tests/nstc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/dlls/explorerframe/tests/nstc.c b/dlls/explorerframe/tests/nstc.c index 80be883..54365b0 100644 --- a/dlls/explorerframe/tests/nstc.c +++ b/dlls/explorerframe/tests/nstc.c @@ -1603,10 +1603,8 @@ static void test_basics(void)
/* The NamespaceTreeControl returns screen coordinates. */ MapWindowPoints(NULL, hwnd, (POINT*)&rc, 2); - ok(rc.left == tv_rc.left, "Differed, got %d and %d\n", rc.left, tv_rc.left); - ok(rc.top == tv_rc.top, "Differed, got %d and %d\n", rc.top, tv_rc.top); - ok(rc.right == tv_rc.right, "Differed, got %d and %d\n", rc.right, tv_rc.right); - ok(rc.bottom == tv_rc.bottom, "Differed, got %d and %d\n", rc.bottom, tv_rc.bottom); + ok(EqualRect(&rc, &tv_rc), "Differed, got %s and %s\n", wine_dbgstr_rect(&rc), + wine_dbgstr_rect(&tv_rc));
/* Save the height and compare to that of other items. Observed values: 18, 19, 21 */