riched32/tests: Fix test failures on Win9x, WinMe and NT4.
This commit is contained in:
parent
9da4d2f3a9
commit
c5946beccc
|
@ -768,7 +768,9 @@ static void test_EM_POSFROMCHAR(void)
|
|||
if (i == 0)
|
||||
{
|
||||
ok(pl.y == 0, "EM_POSFROMCHAR reports y=%d, expected 0\n", pl.y);
|
||||
ok(pl.x == 1, "EM_POSFROMCHAR reports x=%d, expected 1\n", pl.x);
|
||||
ok(pl.x == 1 ||
|
||||
broken(pl.x == 0), /* Win9x, WinME and NT4 */
|
||||
"EM_POSFROMCHAR reports x=%d, expected 1\n", pl.x);
|
||||
xpos = pl.x;
|
||||
}
|
||||
else if (i == 1)
|
||||
|
@ -829,7 +831,9 @@ static void test_EM_POSFROMCHAR(void)
|
|||
result = SendMessage(hwndRichEdit, EM_POSFROMCHAR, (WPARAM)&pl, 0);
|
||||
ok(result == 0, "EM_POSFROMCHAR returned %ld, expected 0\n", result);
|
||||
ok(pl.y == 0, "EM_POSFROMCHAR reports y=%d, expected 0\n", pl.y);
|
||||
ok(pl.x == 1, "EM_POSFROMCHAR reports x=%d, expected 1\n", pl.x);
|
||||
ok(pl.x == 1 ||
|
||||
broken(pl.x == 0), /* Win9x, WinME and NT4 */
|
||||
"EM_POSFROMCHAR reports x=%d, expected 1\n", pl.x);
|
||||
xpos = pl.x;
|
||||
|
||||
SendMessage(hwndRichEdit, WM_HSCROLL, SB_LINERIGHT, 0);
|
||||
|
@ -838,7 +842,9 @@ static void test_EM_POSFROMCHAR(void)
|
|||
ok(pl.y == 0, "EM_POSFROMCHAR reports y=%d, expected 0\n", pl.y);
|
||||
todo_wine {
|
||||
/* Fails on builtin because horizontal scrollbar is not being shown */
|
||||
ok(pl.x < xpos, "EM_POSFROMCHAR reports x=%hd, expected value less than %d\n", pl.x, xpos);
|
||||
ok(pl.x < xpos ||
|
||||
broken(pl.x == xpos), /* Win9x, WinME and NT4 */
|
||||
"EM_POSFROMCHAR reports x=%hd, expected value less than %d\n", pl.x, xpos);
|
||||
}
|
||||
DestroyWindow(hwndRichEdit);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue