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>
This commit is contained in:
Michael Stefaniuc 2016-07-09 13:58:55 +02:00 committed by Alexandre Julliard
parent 2ddbadccef
commit dc5dd6ac0a
1 changed files with 2 additions and 4 deletions

View File

@ -1603,10 +1603,8 @@ static void test_basics(void)
/* The NamespaceTreeControl returns screen coordinates. */ /* The NamespaceTreeControl returns screen coordinates. */
MapWindowPoints(NULL, hwnd, (POINT*)&rc, 2); MapWindowPoints(NULL, hwnd, (POINT*)&rc, 2);
ok(rc.left == tv_rc.left, "Differed, got %d and %d\n", rc.left, tv_rc.left); ok(EqualRect(&rc, &tv_rc), "Differed, got %s and %s\n", wine_dbgstr_rect(&rc),
ok(rc.top == tv_rc.top, "Differed, got %d and %d\n", rc.top, tv_rc.top); wine_dbgstr_rect(&tv_rc));
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);
/* Save the height and compare to that of other items. /* Save the height and compare to that of other items.
Observed values: 18, 19, 21 */ Observed values: 18, 19, 21 */