Commit dc5dd6ac authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

explorerframe/tests: Use EqualRect() instead of open coding it.

parent 2ddbadcc
......@@ -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 */
......
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