81 Commits

Author SHA1 Message Date
Michael Stefaniuc
1694ab087a user32/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-28 18:27:20 +02:00
Nikolay Sivov
6aa853ae39 user32/edit: Fix EM_SETWORDBREAKPROC return value.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-22 22:26:46 +01:00
Nikolay Sivov
8d8c94d793 user32/tests: Add EM_GETLINE test.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-12 15:02:55 +01:00
Nikolay Sivov
5f327bbb86 user32/tests: Remove runtime check for GetMenuBarInfo().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-18 11:19:34 +01:00
Nikolay Sivov
84a35f532f user32/tests: Remove runtime check for EndMenu().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-06 17:01:59 +01:00
Nikolay Sivov
f62d8dc58f user32/edit: Allow buffer access after EM_GETHANDLE.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-05 20:30:04 +01:00
Nikolay Sivov
71eac4a70b user32/tests: Added some tests for WM_GETTEXTLENGTH/WM_GETTEXT after EM_GETHANDLE was used.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-04 19:54:16 +01:00
Alexandre Julliard
92d2ebe662 user32/tests: Avoid strlen in traces.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-08 22:12:45 +01:00
Rafał Harabień
6653d43023 user32: Protect single-line edit against pasting new line character.
Signed-off-by: Rafał Harabień <rafalh1992@o2.pl>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-07 21:24:44 +01:00
Huw Davies
c247a36eed user32: EC_USEFONTINFO behaviour depends on whether the font's charset is CJK or not.
In the non-CJK case, the margins are half of the width returned by
GdiGetCharDimensions() but only if the client rect's width is above a
certain size.  There is an exception if the client rect is empty if
the font is sufficiently small.

In the CJK case, the margins are independent of the client rect size.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-01 22:14:22 +09:00
Michael Stefaniuc
7f5adb69cd user32/tests: Use wine_dbgstr_rect() to print RECTs.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-17 00:09:21 +09:00
Andrey Gusev
5a0596ed10 user32/tests: Fix a typo in ok() message.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-23 14:09:08 +09:00
Michael Stefaniuc
4ee8139487 user32/tests: Use SetRect instead of open coding it.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-18 19:28:31 +09:00
Michael Müller
2be56fdc95 user32: Ignore lParam argument of WM_SIZE message for edit control.
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
2015-10-06 22:18:49 +09:00
Sebastian Lackner
e4a3cd60df user32/tests: Add a test for sending WM_SIZE message to edit control.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
2015-10-06 22:18:30 +09:00
Huw Davies
b3fe7f7c1b user32/tests: Fix tests on Windows 8. 2015-05-20 17:27:10 +09:00
Akihiro Sagawa
6b616a0fd8 user32: Emit EM_SETSEL message when choosing "Select All" from context menu. 2014-04-08 09:25:15 +02:00
Akihiro Sagawa
0bfc8f05c6 user32: Don't emit WM_COMMAND on choosing an item in a context menu (Edit control). 2014-04-08 09:25:06 +02:00
Akihiro Sagawa
1ba63827f2 user32/tests: Add some tests for edit control context menu messages. 2014-04-08 09:24:47 +02:00
Akihiro Sagawa
0815386430 user32/tests: Don't forget to destroy the parent window after the tests. 2014-04-08 09:24:40 +02:00
Nikolay Sivov
ba3a6d1f4b user32: Fix Edit margins calculation for empty client area case. 2014-04-07 09:58:02 +02:00
Frédéric Delanoy
bb2be17327 user32/tests: Use BOOL type where appropriate. 2013-11-05 11:16:00 +01:00
Dmitry Timoshkov
0e42a41ab3 user32/tests: Fix edit control tests compilation with __WINESRC__ defined. 2013-10-23 17:01:47 +02:00
Francois Gouget
653354ab25 Assorted spelling fixes. 2013-07-03 21:20:04 +02:00
Detlef Riekenberg
caf1bbba94 user32/tests: Add tests for EM_GETHANDLE. 2013-05-17 16:59:20 +02:00
Piotr Caban
1128546437 user32/tests: Added GetMenuBarInfo tests. 2012-05-16 20:27:21 +02:00
Alexandre Julliard
03820a527b user32: Fix some printf format warnings. 2012-01-17 15:02:51 +01:00
Michael Stefaniuc
8cd1d5839f user32/tests: Drop superfluous function pointer casts. 2011-11-21 11:51:12 +01:00
Francois Gouget
03d4ef95ec user32/tests: Add a trailing '\n' to an ok() call. 2011-09-09 13:38:27 +02:00
Bruno Jesus
2b6f0b9af7 user32/tests: Add SetCaretPos/GetCaretPos tests. 2011-09-08 20:08:06 +02:00
Austin English
5e941f89c2 user32/tests: Remove win9x hacks. 2011-07-28 19:57:32 +02:00
Marcus Meissner
b0b77d4ba9 user32: Fixed some more side effect functions in assert() (Coverity). 2011-02-25 14:47:50 +01:00
Greg Geldorp
0406b5d543 user32/tests: Fix edit tests. 2011-01-24 14:43:26 +01:00
Gerald Pfeifer
9da2bbfab7 user32/tests: Remove variable old_left_margin which is not really used from test_margins. 2010-05-04 18:38:43 +02:00
Paul Vriens
1b50493ba6 user32/tests: Run the tests again on Win95. 2010-05-03 13:57:17 +02:00
Vincent Povirk
a5fd32eb84 user32: Focus editboxes when the context menu is opened. 2010-04-25 07:38:10 -05:00
David Hedberg
5a1f8c57a8 user32: Fix case where EM_SCROLL with page down results in trying to scroll up past the beginning. 2010-03-03 14:01:58 +01:00
David Hedberg
598052b4ad user32: Fix return value of EDIT_EM_Scroll. 2010-03-03 14:01:50 +01:00
Jason Edmeades
0641192b52 user32/tests: Combo should preselect all text on first WM_SETFOCUS. 2010-01-25 18:05:03 +01:00
Michael Stefaniuc
7e2b624896 user32/tests: Remove some explicit LPARAM/WPARAM casts. 2009-12-28 12:27:13 +01:00
Michael Stefaniuc
6c7c2401ad user32/tests: Don't cast NULL to an integer type. 2009-12-21 15:01:25 +01:00
Ilya Shpigor
da9c52371e user32: Destroy EDITSTATE structure in the WM_NCDESTROY message processing. 2009-11-16 17:06:21 +01:00
Sergey Khodych
aa8129a338 user32/tests: Fix a typo. 2009-09-01 17:36:56 +02:00
Sergey Khodych
205a7f7f03 user32: edit: Improve handling of WM_KEYDOWN VK_RETURN in a dialog mode. 2009-08-26 16:38:03 +02:00
Sergey Khodych
d4707dbb60 user32: edit: Improve handling of WM_KEYDOWN VK_TAB in a dialog mode. 2009-08-26 16:37:12 +02:00
Sergey Khodych
3b6ea11481 user32: edit: Improve handling of WM_KEYDOWN VK_ESCAPE in a dialog mode. 2009-08-26 16:37:05 +02:00
Sergey Khodych
6fa48cdd91 user32: edit: Use a dialog mode after receiving WM_GETDLGCODE message.
Tests show that the edit control uses a dialog mode after receiving 
WM_GETDLGCODE message and it doesn't depend on whether the edit control 
has a parent window.
2009-08-26 16:36:50 +02:00
Francois Gouget
8a46d0eaf5 Assorted spelling fixes. 2009-05-04 12:53:29 +02:00
Rein Klazes
3e7f226985 user32/tests: Fix a test in edit.c that was not testing what it was supposed to test. 2009-05-01 13:14:11 +02:00
Michael Stefaniuc
69680296ee user32/tests: Don't use the long type. 2009-04-22 13:13:51 +02:00