Module: wine
Branch: master
Commit: 145e3c758b9594596835e291b2fcb3c80e4c0479
URL: https://gitlab.winehq.org/wine/wine/-/commit/145e3c758b9594596835e291b2fcb3…
Author: Francois Gouget <fgouget(a)free.fr>
Date: Wed Feb 15 06:04:05 2023 +0100
riched20/tests: Fix a typo in a comment.
---
dlls/riched20/tests/editor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/riched20/tests/editor.c b/dlls/riched20/tests/editor.c
index e3801d5a611..4f4d637b687 100644
--- a/dlls/riched20/tests/editor.c
+++ b/dlls/riched20/tests/editor.c
@@ -5856,7 +5856,7 @@ static void test_EM_FORMATRANGE(void)
else if (! skip_non_english)
ok (r < len, "Expected < %d, got %d\n", len, r);
- /* There is at least on more page, but we don't care */
+ /* There is at least one more page, but we don't care */
r = SendMessageA(hwndRichEdit, EM_FORMATRANGE, TRUE, 0);
todo_wine {
Module: wine
Branch: master
Commit: f54a1dac64c89aea3fe02ae8c0d6eef43a0aa117
URL: https://gitlab.winehq.org/wine/wine/-/commit/f54a1dac64c89aea3fe02ae8c0d6ee…
Author: Jinoh Kang <jinoh.kang.kr(a)gmail.com>
Date: Mon Mar 6 22:29:43 2023 +0900
riched20/tests: Don't specify DT_WORDBREAK in _check_txgetnaturalsize().
Today, test_TxGetNaturalSize() creates a pop-up window with a fixed size
(extent) of 100 x 100. The test function then proceeds to compute the
natural size of rich edit control that fits the sample text
"TestSomeText" and compare it to the RECT calculated by DrawText.
Apparently, this test fails if the width of the sample text
"TestSomeText" exceeds the width of the test window's client area. In
this case, DrawText() with DT_WORDBREAK breaks the text into the two
lines due to text wrapping; however, Rich Edit's
ITextServices::TxGetNaturalSize implementation does not seem to perform
text wrapping on overflow. This results in extent mismatch.
(Note that the test may either succeed or fail depending on the current
font used for DEFAULT_GUI_FONT, which defaults to Tahoma according to
Microsoft's documentation. To reproduce this failure, it may be
necessary to switch fonts or change the width of the pop-up window.)
Fix this by omitting the DT_WORDBREAK flag for the DrawText() call in
_check_txgetnaturalsize().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54637
---
dlls/riched20/tests/txtsrv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/riched20/tests/txtsrv.c b/dlls/riched20/tests/txtsrv.c
index da8e9da5ea6..d75db465ce4 100644
--- a/dlls/riched20/tests/txtsrv.c
+++ b/dlls/riched20/tests/txtsrv.c
@@ -753,7 +753,7 @@ static void _check_txgetnaturalsize(HRESULT res, LONG width, LONG height, HDC hd
RECT expected_rect = rect;
LONG expected_width, expected_height;
- DrawTextW(hdc, string, -1, &expected_rect, DT_LEFT | DT_CALCRECT | DT_NOCLIP | DT_EDITCONTROL | DT_WORDBREAK);
+ DrawTextW(hdc, string, -1, &expected_rect, DT_LEFT | DT_CALCRECT | DT_NOCLIP | DT_EDITCONTROL);
expected_width = expected_rect.right - expected_rect.left;
expected_height = expected_rect.bottom - expected_rect.top;
ok_(__FILE__,line)(res == S_OK, "ITextServices_TxGetNaturalSize failed: 0x%08lx.\n", res);