riched20/tests: Use InflateRect() too when expanding in just one axis.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d357dbfdd7
commit
6eef44ed9a
|
@ -7047,8 +7047,7 @@ static void test_format_rect(void)
|
||||||
GetClientRect(hwnd, &clientRect);
|
GetClientRect(hwnd, &clientRect);
|
||||||
|
|
||||||
expected = clientRect;
|
expected = clientRect;
|
||||||
expected.left += 1;
|
InflateRect(&expected, -1, 0);
|
||||||
expected.right -= 1;
|
|
||||||
SendMessageA(hwnd, EM_GETRECT, 0, (LPARAM)&rc);
|
SendMessageA(hwnd, EM_GETRECT, 0, (LPARAM)&rc);
|
||||||
ok(EqualRect(&rc, &expected), "rect %s != %s\n", wine_dbgstr_rect(&rc),
|
ok(EqualRect(&rc, &expected), "rect %s != %s\n", wine_dbgstr_rect(&rc),
|
||||||
wine_dbgstr_rect(&expected));
|
wine_dbgstr_rect(&expected));
|
||||||
|
@ -7143,8 +7142,7 @@ static void test_format_rect(void)
|
||||||
GetClientRect(hwnd, &clientRect);
|
GetClientRect(hwnd, &clientRect);
|
||||||
|
|
||||||
expected = clientRect;
|
expected = clientRect;
|
||||||
expected.left += 1;
|
InflateRect(&expected, -1, 0);
|
||||||
expected.right -= 1;
|
|
||||||
SendMessageA(hwnd, EM_GETRECT, 0, (LPARAM)&rc);
|
SendMessageA(hwnd, EM_GETRECT, 0, (LPARAM)&rc);
|
||||||
ok(EqualRect(&rc, &expected), "rect %s != %s\n", wine_dbgstr_rect(&rc),
|
ok(EqualRect(&rc, &expected), "rect %s != %s\n", wine_dbgstr_rect(&rc),
|
||||||
wine_dbgstr_rect(&expected));
|
wine_dbgstr_rect(&expected));
|
||||||
|
@ -7153,8 +7151,7 @@ static void test_format_rect(void)
|
||||||
GetClientRect(hwnd, &clientRect);
|
GetClientRect(hwnd, &clientRect);
|
||||||
|
|
||||||
expected = clientRect;
|
expected = clientRect;
|
||||||
expected.left += 1;
|
InflateRect(&expected, -1, 0);
|
||||||
expected.right -= 1;
|
|
||||||
SendMessageA(hwnd, EM_GETRECT, 0, (LPARAM)&rc);
|
SendMessageA(hwnd, EM_GETRECT, 0, (LPARAM)&rc);
|
||||||
ok(EqualRect(&rc, &expected), "rect %s != %s\n", wine_dbgstr_rect(&rc),
|
ok(EqualRect(&rc, &expected), "rect %s != %s\n", wine_dbgstr_rect(&rc),
|
||||||
wine_dbgstr_rect(&expected));
|
wine_dbgstr_rect(&expected));
|
||||||
|
@ -7163,8 +7160,7 @@ static void test_format_rect(void)
|
||||||
GetClientRect(hwnd, &clientRect);
|
GetClientRect(hwnd, &clientRect);
|
||||||
|
|
||||||
expected = clientRect;
|
expected = clientRect;
|
||||||
expected.left += 1;
|
InflateRect(&expected, -1, 0);
|
||||||
expected.right -= 1;
|
|
||||||
SendMessageA(hwnd, EM_GETRECT, 0, (LPARAM)&rc);
|
SendMessageA(hwnd, EM_GETRECT, 0, (LPARAM)&rc);
|
||||||
ok(EqualRect(&rc, &expected), "rect %s != %s\n", wine_dbgstr_rect(&rc),
|
ok(EqualRect(&rc, &expected), "rect %s != %s\n", wine_dbgstr_rect(&rc),
|
||||||
wine_dbgstr_rect(&expected));
|
wine_dbgstr_rect(&expected));
|
||||||
|
@ -7180,9 +7176,8 @@ static void test_format_rect(void)
|
||||||
GetClientRect(hwnd, &clientRect);
|
GetClientRect(hwnd, &clientRect);
|
||||||
|
|
||||||
expected = clientRect;
|
expected = clientRect;
|
||||||
expected.left += 1;
|
|
||||||
expected.top += 1;
|
expected.top += 1;
|
||||||
expected.right -= 1;
|
InflateRect(&expected, -1, 0);
|
||||||
SendMessageA(hwnd, EM_GETRECT, 0, (LPARAM)&rc);
|
SendMessageA(hwnd, EM_GETRECT, 0, (LPARAM)&rc);
|
||||||
ok(EqualRect(&rc, &expected), "rect %s != %s\n", wine_dbgstr_rect(&rc),
|
ok(EqualRect(&rc, &expected), "rect %s != %s\n", wine_dbgstr_rect(&rc),
|
||||||
wine_dbgstr_rect(&expected));
|
wine_dbgstr_rect(&expected));
|
||||||
|
@ -7191,8 +7186,7 @@ static void test_format_rect(void)
|
||||||
InflateRect(&rc, -5, -5);
|
InflateRect(&rc, -5, -5);
|
||||||
expected = rc;
|
expected = rc;
|
||||||
expected.top -= 1;
|
expected.top -= 1;
|
||||||
expected.left -= 1;
|
InflateRect(&expected, 1, 0);
|
||||||
expected.right += 1;
|
|
||||||
SendMessageA(hwnd, EM_SETRECT, 0, (LPARAM)&rc);
|
SendMessageA(hwnd, EM_SETRECT, 0, (LPARAM)&rc);
|
||||||
SendMessageA(hwnd, EM_GETRECT, 0, (LPARAM)&rc);
|
SendMessageA(hwnd, EM_GETRECT, 0, (LPARAM)&rc);
|
||||||
ok(EqualRect(&rc, &expected), "rect %s != %s\n", wine_dbgstr_rect(&rc),
|
ok(EqualRect(&rc, &expected), "rect %s != %s\n", wine_dbgstr_rect(&rc),
|
||||||
|
|
Loading…
Reference in New Issue