Commit Graph

86 Commits

Author SHA1 Message Date
Nikolay Sivov 6c8887b830 user32/tests: Fix indentation warnings on GCC 6.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-10 12:51:54 +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
Michael Stefaniuc 4b26eef83c user32/tests: Use EqualRect() instead of open coding it.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-06 18:48:34 +09:00
Andrey Gusev f5531dc347 user32/tests: Fix a typo in comment.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-05 01:27:51 +09:00
Vincent Povirk 906db769f1 user32: Skip menu loop for empty popup menus.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-17 19:44:02 +09:00
Nikolay Sivov 8a7e7ec6a1 user32/tests: Simplify some tests using todo_wine_if().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-11 12:17:31 +09:00
Alexandre Julliard 5e38c8743d user32/tests: Fix a few more menu test failures on Windows.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-26 00:12:50 +09:00
Alexandre Julliard c82626a4c1 user32: Add workaround for removed SC_TASKLIST system menu item.
Word 95 assumes that the item exists.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-19 20:55:15 +09:00
Alexandre Julliard 8693805431 user32/tests: Fix a test that assumes that a menu handle is invalid.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-19 20:55:14 +09:00
Dmitry Timoshkov c0de7f8641 user32: Menu item with a "magic" bitmap should not have MFT_BITMAP type set.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-18 13:07:15 +09:00
Dmitry Timoshkov 5ef96fd5bc user32/tests: Add more tests for mixed menu with strings and bitmaps.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-18 13:07:13 +09:00
André Hentschel 83bfda7caf user32/tests: Allow tracing in menu tests.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
2015-10-02 18:11:31 +09:00
Huw Davies 14f7fd4e23 user32/tests: Add tests for setting and getting the background brush. 2015-01-16 16:52:34 +01:00
Sebastian Lackner 4a3e0e1e0c user32/tests: Add an additional test for GetMenuItemInfo with NULL pointer as TypeData. 2014-09-09 11:11:28 +02:00
Alexandre Julliard ae6efdd45d user32/tests: Silence some noisy traces. 2014-06-17 10:58:55 +02:00
Dmitry Timoshkov c6dbb33e19 user32: When converting from MF_ flags to MENUITEMINFO ignore MF_POPUP if id is not a menu. 2014-04-21 11:09:52 +02:00
Dmitry Timoshkov 7744c7003b user32/tests: Add AppendMenu/ModifyMenu MF_POPUP tests. 2014-04-21 11:09:51 +02:00
Vincent Povirk 68f2b878d2 user32: Allow EndMenu() calls from WM_ENTERMENULOOP. 2014-04-18 14:36:04 +02:00
Piotr Caban 55ff066103 user32: Don't fail on windows without menu bar in DrawMenuBar. 2014-04-10 16:51:09 +02:00
Vincent Povirk 0dc1886634 user32/tests: Put some menu items in the test_menu_trackagain menu. 2014-03-12 20:24:24 +01:00
Vincent Povirk b8d80364c3 user32/tests: Add a test for empty popup menus. 2014-03-12 20:24:17 +01:00
Frédéric Delanoy 0f2bed51bd Assorted spelling fixes. 2014-02-10 15:47:29 +01:00
André Hentschel c855459a40 user32/tests: Avoid preprocessor check to ensure it compiles. 2014-01-28 11:50:15 +01:00
Bruno Jesus 06a6b189f6 user32: Cope with null LPMENUITEMINFO in SetMenuItemInfo. 2014-01-27 14:13:51 +01:00
Frédéric Delanoy 0e37ca1478 user32/tests: Use BOOL type where appropriate. 2013-11-06 12:01:54 +01:00
Dmitry Timoshkov d2ab1731c8 user32/tests: Fix menu tests compilation with __WINESRC__ defined. 2013-10-24 10:44:03 +02:00
Ken Thomases 7e0c42e839 user32/tests: Test that sending WM_CANCELMODE cancels tracking in window's menu bar. 2013-05-20 21:15:38 +02:00
Piotr Caban 1a74d21090 user32/tests: Added more GetMenuBarInfo tests. 2012-05-16 20:27:23 +02:00
Frédéric Delanoy 760faf01a9 tests: Assorted spelling fixes. 2011-08-04 18:27:37 +02:00
André Hentschel 5ca020b9d8 user32: Remove dead initializations (clang). 2011-07-06 11:20:13 +02:00
Alexandre Julliard efaa068cd1 user32: Always pass 0 as item id for WM_MEASUREITEM in menus. 2011-06-21 16:12:53 +02:00
Alexandre Julliard 33ba7c07fb user32: Don't truncate bitmap ids in InsertMenu. 2011-06-21 16:07:00 +02:00
Alexandre Julliard bd1fab7862 user32: Don't start menu tracking when the owner window is invalid. 2011-04-21 16:53:42 +02:00
Marcus Meissner a91b0e4544 user32: Remove side effect code out of asserts() (Coverity). 2011-02-23 18:24:20 +01:00
Austin English f956a472c0 user32/tests: Make sure return values are used (LLVM/Clang). 2011-02-14 13:33:32 +01:00
Joris Huizer 26f753aec8 user32/tests: Don't test function directly when reporting GetLastError(). 2011-02-07 10:04:37 -06:00
Greg Geldorp 2b0d8ed7c3 user32/tests: Fix menu test failures on East-Asian machines. 2011-01-13 15:22:00 +01:00
Nikolay Sivov e9bae2cfaf user32: Block TrackPopupMenu if menu is already active. 2010-04-09 11:42:01 +02:00
Kusanagi Kouichi 56416b09a6 user32: F10 key deactivates menu. 2010-01-18 14:38:29 +01:00
Alexandre Julliard ffe9ace917 user32/tests: Fix some last error checks for WoW64. 2009-12-23 14:27:31 +01:00
Rein Klazes b94f63ef38 user32: Handle MN_GETHMENU in PopupMenuWndProc. 2009-10-16 17:49:40 +02:00
Francois Gouget e74efb5487 Assorted spelling fixes. 2009-08-11 12:35:38 +02:00
Rein Klazes c18cd1b46f user32: When all items in a menu have either a bitmap or text but not both, then texts should be aligned with the bitmaps. 2009-08-03 17:39:22 +02:00
Rein Klazes 38dbe067c3 user32: Fail if inserting a submenu would create a loop in the menu hierarchy. 2009-07-24 13:11:10 +02:00
Rein Klazes da86ab71fa user32/tests: Fix for a test failure on win98/NT4. 2009-07-21 15:59:24 +02:00
Rein Klazes c2ada64097 user32: Ignore the MFT_BITMAP flag when testing menu items for 'magic' bitmap handles. 2009-07-20 14:19:46 +02:00
Rein Klazes 5b4b1e6a67 user32/tests: Show that Windows avoids creating loops in a menu tree, probably by limiting the depth of such tree. 2009-07-17 13:34:40 +02:00
Alexandre Julliard 83cb24f9b4 user32/tests: Fix some pointer conversion warnings on 64-bit. 2009-05-28 15:24:31 +02:00
Francois Gouget 5ef481922f Assorted spelling fixes. 2009-04-20 15:25:26 +02:00
Rein Klazes e861d8be43 user32: Fix for the ending of menu tracking in the default handler of WM_CANCELMODE message with test. 2009-04-03 13:25:31 +02:00