Alex Henrie
72ab2d5b07
user32/tests: Fix OemKeyScan failures with input method editors.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-28 21:36:55 +01:00
Nikolay Sivov
41a76447dd
user32/tests: Add some tests for A/W auto conversion in case of mismatching window vs dialog procedure types.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-28 21:36:55 +01:00
Zebediah Figura
d95be60ff6
user32/tests: Add a basic test for maximizing windows.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-21 10:38:01 +01:00
Zebediah Figura
b7cdfd312c
user32/tests: Also test client rect size.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-21 10:37:59 +01:00
Zebediah Figura
54388647af
user32/tests: Explicitly test minimized window size.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-21 10:37:56 +01:00
Zebediah Figura
83c806ed0e
user32/tests: Add activation tests for minimizing windows.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-20 17:49:10 +01:00
Zebediah Figura
2f0d573be7
user32/tests: Add activation tests for hiding windows.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-20 17:49:03 +01:00
Zebediah Figura
e188d66251
user32/tests: Add more tests for SetActiveWindow().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-20 17:48:57 +01:00
Zebediah Figura
51f555a517
user32/tests: Don't leave hwndMain in a topmost state.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-20 17:48:55 +01:00
Nikolay Sivov
ea141a5ae9
user32/tests: Class API tests for interaction with activation contexts.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-18 12:35:13 +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
0a953f117a
user32/tests: Release window DCs consistently.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-14 09:58:30 +01:00
Sebastian Lackner
f0fc034997
Revert "user32/combo: Set listbox popup height correctly and add tests.".
...
This partly reverts commit f7f7b89e2e
(tests are left in place).
Any application that currently uses "Microsoft.Windows.Common-Controls
v6" via a Manifest has the possibility of breaking comboboxes. Using
this version of the control ensures that dropdown for comboboxes, will
show multiple items, regardless of its height in the resource.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-11 15:29:42 +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
Fabian Maurer
ca1c64d37d
user32/tests: Test manually setting WS_VSCROLL on combobox listbox.
...
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-20 12:37:15 +01:00
Rafał Harabień
5c2526a086
winex11.drv: Preserve last error in x11drv_thread_data().
...
Signed-off-by: Rafał Harabień <rafalh1992@o2.pl>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-17 17:44:05 +01:00
Dmitry Timoshkov
ed7513f9c2
user32/tests: Add a bunch of WS_EX_TOPMOST tests.
...
The tests most of the time pass cleanly here under MATE environment,
but sometimes there are intermittent failures (like in some other tests)
without visible reason, and another 'make test' runs cleanly again.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-13 13:02:20 +01:00
Dmitry Timoshkov
82cf34562e
user32/tests: Make WS_EX_TOPMOST tests more generic.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-13 11:59:45 +01:00
Dmitry Timoshkov
91b09e0c5b
user32/tests: Separate WS_EX_TOPMOST tests from SetWindowPos ones.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-13 11:59:43 +01:00
Dmitry Timoshkov
825d2337b5
user32/tests: Fix test failures under Windows.
...
Without SetForegroundWindow() these tests fail in some testbot runs.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-13 11:59:39 +01:00
Dmitry Timoshkov
5aafd080d1
user32/tests: Don't leave a stray test window behind.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-13 11:59:37 +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
Zebediah Figura
d385de71e3
user32/tests: Simplify test_SendMessage_other_thread().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-06 12:15:28 +01:00
Marcus Meissner
77f4c20af3
user32/tests: Check GetClipboardFormatName length.
...
Signed-off-by: Marcus Meissner <marcus@jet.franken.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-06 12:15:28 +01:00
Zebediah Figura
9b7f9f2d08
user32: Use the given string length when converting strings in WM_GETTEXT.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-06 12:15:28 +01:00
Marcus Meissner
ebfd1d3df6
user32/tests: Removed a unreliable test.
...
Signed-off-by: Marcus Meissner <meissner@suse.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-31 17:00:47 +01:00
Piotr Caban
8159af76b4
user32: Don't do the painting if combobox is not visible in CBPaintText.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-24 19:10:06 +02:00
Andrey Gusev
70b8a2f86b
user32/tests: Remove redundant comparison.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-13 15:08:56 +02:00
Piotr Caban
1a114c9f4b
user32: Don't invalidate ComboBox on CB_SETCURSEL message.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-06 21:48:48 +02:00
Piotr Caban
eb5c7bccd4
user32/tests: Add test for CB_SETCURSEL on ComboBox.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-06 21:48:48 +02:00
Fabian Maurer
f7f7b89e2e
user32/combo: Set listbox popup height correctly and add tests.
...
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-28 09:29:27 +02:00
Dmitry Timoshkov
3d66e753e7
user32: DialogBoxParam should return -1 when dialog control creation fails.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-24 14:03:38 +09:00
Dmitry Timoshkov
a62a8601db
user32/tests: Test DialogBoxParam using a dialog template with invalid control class.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-24 14:00:17 +09:00
Zebediah Figura
292450b07f
user32: Calculate a window's minimized size even if it's already minimized.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-18 20:43:35 +02:00
Alexandre Julliard
2999123fed
user32: Also disable the DC if the window is destroyed without a ReleaseDC.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-18 20:43:31 +02:00
Alexandre Julliard
52d90e3ce0
user32/tests: Add some tests for WindowFromDC and destroyed windows.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-17 09:56:07 +02:00
Alexandre Julliard
d4654e5799
user32: Scale cursor sizes with the screen DPI.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-05 20:20:05 +02:00
Huw Davies
8d10b5cecc
user32: Use the original message's wparam during the double-click comparison.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-05 19:49:35 +02:00
Zebediah Figura
84a2459d56
user32/tests: Add tests for minimizing MDI windows.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-02 10:33:48 +02:00
Alexandre Julliard
719e28bd2c
server: Don't increment the clipboard sequence number for delayed rendering or synthesized formats.
...
Based on a patch by Piotr Caban.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-24 13:03:39 +02:00
Piotr Caban
66c7b37a98
user32: Test clipboard sequence number for delayed rendered data.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-16 19:02:19 +02:00
Piotr Caban
1e9d40e601
user32: Test clipboard sequence number for synthesized data.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-16 19:02:17 +02:00
Piotr Caban
61d78205d2
user32: Don't load GetClipboardSequenceNumber dynamically in tests.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-16 19:02:15 +02:00
Alexandre Julliard
0647abc507
user32/tests: Test resulting size of strings with trailing nulls.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-10 16:55:45 -05:00
Nikolay Sivov
9ee82b9465
user32/msgbox: Fix static control id.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-07 16:19:18 -05:00
Huw Davies
ee3f060262
user32: Change IsProcessDPIAware() to always return TRUE.
...
This mimics Windows' behaviour when the 'Use Windows XP style DPI
scaling' box is ticked. Since we don't have a DPI scaler, this makes
most sense.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-02 17:51:34 +02:00
Huw Davies
fb118b222a
user32: Fix the calculation of system metrics icon sizes.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-02 17:51:31 +02:00
Huw Davies
3845b0bb73
user32/tests: Try to read the dpi from the user key first.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-27 22:22:51 +02:00
Zebediah Figura
fe95de98b5
user32: Move internal message from EnableWindow to WIN_SetStyle().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-25 11:47:20 +02:00
Nikolay Sivov
3c7fee39d3
user32: Partially protect WM_SETTEXT handlers from invalid input.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-20 18:58:46 +02:00
Piotr Caban
f7402accc4
user32/tests: Add layered window child painting test when WS_CLIPCHILDREN flag is specified.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-19 20:02:55 +02:00
Huw Davies
e352b29d12
user32/tests: Fix tests for minimium icon spacing when not in DPI scaling mode.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-11 16:00:39 +02:00
Huw Davies
bfcf92f148
user32/tests: Fix a few failures in DPI scaling mode.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-11 16:00:37 +02:00
Huw Davies
0ce293a0d8
user32/tests: Correctly restore the caption sizes when run in DPI scaling mode.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-11 16:00:35 +02:00
Zebediah Figura
0ac74d180a
user32: Always send WM_CANCELMODE when disabling a window.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-29 10:20:54 +02:00
Zebediah Figura
b4fea4f2f0
user32: Don't call ReleaseCapture() in EnableWindow().
...
Killing the capture is already handled in DefWindowProc().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-29 10:11:55 +02:00
Zebediah Figura
3d133becce
user32/tests: Add tests for EnableWindow().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-29 10:09:46 +02:00
Piotr Caban
a878f0a02a
user32: Don't call IsChild with NULL window in EnableWindow.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-21 20:52:38 +01:00
Alexandre Julliard
413e27eff1
user32/tests: Re-enable a test about window positions.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-13 19:34:51 +01:00
Alex Henrie
2799be1804
user32: Translate WM_(NC)XBUTTONUP to WM_APPCOMMAND in DefWindowProc.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-23 20:14:15 +01:00
Fabian Maurer
d594ba3322
user32: Only send position-change messages when needed.
...
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-20 10:43:15 +01:00
Fabian Maurer
997d4ef44f
user32: Send WM_NCPAINT and WM_ERASEBKGND when window is shown.
...
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-20 10:42:37 +01:00
Francois Gouget
a3f36a045f
user32/tests: Occasional spelling fixes in comments.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-20 10:32:09 +01:00
Rodrigo Rivas Costa
fbd9ed0dee
user32: Fix error handling in EndDeferWindowPos.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-17 20:53:53 +01:00
Sebastian Lackner
6f62f9614d
user32/tests: Add test for EndDeferWindowPos with destroyed window.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-17 13:54:00 +01:00
Fabian Maurer
43b0dce203
user32/tests: Add tests for disabled buttons receiving WM_LBUTTONUP.
...
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-16 21:39:28 +01:00
Fabian Maurer
eba9294d9e
user32/tests: Add WM_NCPAINT tests for windows crossing screen or maximized.
...
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-13 21:45:27 +01:00
Fabian Maurer
372e3e223a
user32/tests: Add tests for windows when first shown if they have children.
...
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-13 21:45:27 +01:00
Fabian Maurer
ea6dbfcd07
user32/tests: Add tests for windows when first shown with SetWindowPos.
...
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-13 21:45:27 +01:00
Fabian Maurer
46b344fc2f
user32/tests: Add tests for windows when first shown with WS_VISIBLE or RedrawWindow.
...
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-13 21:45:26 +01:00
Nikolay Sivov
a423f14a56
user32/tests: Test to show that original font is not selected back after painting buttons.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-07 17:24:31 +01:00
Huw Davies
01112061c2
user32/tests: Restore the mouse cursor to its original position.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-07 14:45:58 +01:00
Fabian Maurer
115bbf424c
user32: Don't send WM_CHAR when a menu gets VK_ESCAPE and add tests.
...
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-03 19:05:09 +01:00
Huw Davies
cdf3872f59
user32/tests: Restore the mouse cursor to its original position.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-02 19:50:34 +01:00
Huw Davies
e883d0ec60
user32: Hardcode the GetWindowLong values for the desktop window to avoid a server round-trip.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-02 19:50:34 +01:00
Huw Davies
a60144ee74
user32: Disable cached DCs once they are released.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-26 10:46:22 +01:00
Huw Davies
e641e6e49b
user32/tests: Windows 10 no longer supports setting bpp to zero.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-18 10:51:21 +01:00
Nikolay Sivov
904c695de8
user32/tests: Some tests for GetWindowText() when non terminated string is returned.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-11 16:04:07 +01:00
Francois Gouget
0ab75f2e5a
user32/tests: A spelling fix in a comment.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-09 12:10:32 +01:00
Nikolay Sivov
d437d61c57
user32/tests: Added some tests for FindWindow().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-02 11:24:22 +01:00
Hans Leidekker
ef743e41ee
user32/tests: Disable automatic shell restart during SetShellWindow tests.
...
This test kills the desktop shell process so it can set a different shell window.
Modern Windows will automatically restart the desktop shell when it dies, and if
that happens soon enough it will interfere with the remaining tests.
Disabling automatic restart requires admin rights.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-20 13:02:49 +01:00
Huw Davies
78983d9fcd
user32/tests: Add a test to show that released cache DCs are disabled.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-09 15:55:03 +01:00
Lauri Kenttä
26be29138f
user32/tests: Add tests for LockWindowUpdate.
...
Signed-off-by: Lauri Kenttä <lauri.kentta@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-09 11:43:50 +01:00
Huw Davies
fab7a584c1
user32/tests: FlashWindow(Ex) sets ERROR_INVALID_WINDOW_HANDLE on updated Windows 7.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-30 16:28:06 +01:00
Huw Davies
400e0af66c
user32/tests: Mark built-in wndproc auto-detection behaviour as broken on Windows 8 and 10.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-24 14:31:32 +01:00
Erich E. Hoover
f9b878101e
user32/tests: Fix an inconsistent test case in clearing the clipboard.
...
Depending on our clipboard polling we can get an additional clipboard
update during the clipboard clear test. This change forces a consistent
state when starting the test, which stops the additional window message
from possibly occurring.
Signed-off-by: Erich E. Hoover <erich.e.hoover@wine-staging.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-15 13:53:29 -06:00
Huw Davies
e574350b62
user32/tests: Don't perform character lookup ToUnicode() tests on non-US keyboards.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-14 11:07:07 -06:00
Sebastian Lackner
cf0f7fcfd5
user32/tests: Fix test failures on 64-bit testbot VMs.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-11 18:38:13 +02:00
Sebastian Lackner
df3c2a4a41
user32: Also release GMEM_FIXED data in free_cached_data.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-01 15:14:10 +02:00
Andrey Gusev
f669dc69cd
user32/tests: Fix incorrect usage of broken() function.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-28 00:56:02 +09:00
Michael Stefaniuc
3589cd921d
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-09-27 21:43:26 +09:00
Michael Stefaniuc
40fdd83489
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-09-27 21:43:26 +09:00
Michael Stefaniuc
e974731117
user32/tests: Remove two commented out printf().
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-27 21:43:26 +09:00
Alexandre Julliard
8f24641ff3
user32: Enforce null termination of strings added to the clipboard.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-27 21:43:24 +09:00
Alexandre Julliard
f0fbf1a9d1
user32: Cache clipboard data on the client side.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-26 15:12:21 +09:00
Alexandre Julliard
3044935b0e
user32: Retrieve clipboard data from the server.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-26 14:48:32 +09:00
Alexandre Julliard
c69b4995c5
user32: Retrieve available clipboard formats from the server.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-26 14:20:41 +09:00
Alexandre Julliard
79f90e4e41
user32: Store clipboard data on the server side.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-26 14:20:26 +09:00
Huw Davies
b7c5ff05a7
user32: Implement OemKeyScan().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-22 22:29:57 +09:00
Huw Davies
ddc1658501
user32: Use MB_USEGLYPHCHARS in OemToCharBuffW().
...
OemToCharBuffA() is more complicated and looks like it will require a
custom table, so that is left as is.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-22 22:29:54 +09:00
Huw Davies
b981d18a55
user32/tests: BITMAPCOREINFO icons are no longer supported on Win 8.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-19 23:14:14 +09:00
Huw Davies
512c8f9444
user32/tests: Add space for the mask data to prevent failures on Win 8 and 10.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-16 23:25:02 +09:00
Alexandre Julliard
08aa64e38e
user32/tests: Add some tests for the contents of the clipboard data.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-15 21:02:34 +09:00
Piotr Caban
80a222a8cd
user32: Fix DefWindowProc(WM_NCRBUTTONDOWN) tests on Win 8 and 10.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-14 22:25:52 +09:00
Alexandre Julliard
4bdcf512cf
user32: Fix GetClipboardFormatName behavior for integer formats.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-14 16:25:07 +09:00
Alexandre Julliard
30179166d2
user32/tests: Comment out a test that crashes on 64-bit Vista.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-14 14:19:33 +09:00
Alexandre Julliard
0b95237677
user32/tests: Add more tests for clipboard data storage.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-13 22:41:02 +09:00
Alexandre Julliard
ed97fa1cb2
user32/tests: Add more tests for GDI and private clipboard formats.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-09 22:49:27 +09:00
Alexandre Julliard
3bab02d02a
user32/tests: Make the clipboard sequence tests more strict.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-09 22:48:58 +09:00
Alexandre Julliard
ef08bd7675
user32: Clear last error in EnumClipboardFormats.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-09 22:48:32 +09:00
Alexandre Julliard
9a652e211c
user32: Synthesize bitmap clipboard formats on the user32 side.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-07 11:36:24 +09:00
Alexandre Julliard
1993898459
user32: Synthesize metafile clipboard formats on the user32 side.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-07 10:51:21 +09:00
Alexandre Julliard
8865f4a4ec
user32: Synthesize text clipboard formats on the user32 side.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-07 00:34:24 +09:00
Alexandre Julliard
b1e8ed3e3b
user32/tests: Add a few more tests for synthesized formats rendering.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-06 17:24:53 +09:00
Alexandre Julliard
fa06ecbfce
user32: Implement GetUpdatedClipboardFormats.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-06 15:35:49 +09:00
Huw Davies
5942625a00
user32/tests: On Win 8 and later, moving a window off-screen doesn't crop its update region.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-06 11:29:48 +09:00
Huw Davies
1c70de2a34
user32/tests: ValidateRect(NULL, &rect) on >= Win 8 no longer invalidates all windows.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-06 11:29:40 +09:00
Alexandre Julliard
e01592e82f
user32/tests: Add some tests for synthesized clipboard formats.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-02 16:20:07 +09: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
Alexandre Julliard
2b8021d4d0
server: Don't release the clipboard owner window when the owner thread terminates.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-01 22:14:22 +09:00
Alexandre Julliard
bddab0e7f8
server: Add a release_clipboard request, and notify the owner and viewer on release.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-01 22:02:04 +09:00
Alexandre Julliard
c6f12bd9cc
server: Notify all listeners when the contents of the clipboard have changed.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-30 16:33:04 +09:00
Alexandre Julliard
7594afeb6c
user32: Fix InSendMessage return value.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-30 14:38:15 +09:00
Alexandre Julliard
35537b1d45
server: Implement Add/RemoveClipboardFormatListener.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-29 23:54:40 +09:00
Alexandre Julliard
19d16a7cb1
server: Add some validation of clipboard window handles.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-29 21:31:50 +09:00
Piotr Caban
1c73fcdbcb
user32: Fix DefWindowProc behavior on WM_NCRBUTTONDOWN message.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-29 16:38:31 +09:00
Alexandre Julliard
7888382e0a
user32: Notify the clipboard viewer on close even if we are not the owner.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-25 22:09:08 +09:00
Alexandre Julliard
57e2b75c02
user32/tests: Add some tests for inter-process clipboard viewer notifications.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-25 21:36:32 +09:00
Alexandre Julliard
5962df3a1e
server: Cleanup clipboard information upon window destruction.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-24 00:16:43 +09:00
Alexandre Julliard
43e38153ee
user32/tests: Add a few more clipboard tests.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-24 00:16:43 +09:00
Alexandre Julliard
99d5b75c7d
winex11: Don't disallow replacing unowned formats.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-23 18:05:48 +09:00
Alexandre Julliard
d9df977006
user32: Don't disallow delayed rendering even when not the clipboard owner.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-23 17:57:50 +09:00
Alexandre Julliard
42c221db6c
user32: Don't allow SetClipboardData if the clipboard is not open.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-23 17:35:18 +09:00
Alexandre Julliard
98b24dcb50
server: Add a separate request to set the clipboard viewer.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-22 23:05:20 +09:00
Alexandre Julliard
e3a8c3a869
user32/tests: Disable custom GDI clipboard formats tests on 64-bit.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-19 16:14:30 +09:00
Alexandre Julliard
60f8b516e2
winex11: Allocate clipboard data as GMEM_FIXED.
...
Based on a patch by Rafał Harabień.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-18 20:57:51 +09:00
Alexandre Julliard
a96b017070
user32/tests: Add some tests for GDI clipboard formats.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-18 20:51:16 +09:00
Józef Kucia
4277b055de
user32: Prevent resetting WS_MINIMIZE through SetWindowLong.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-18 11:57:25 +09:00
Józef Kucia
412b8dcafb
user32/tests: Add more tests for setting window styles.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-18 11:57:11 +09:00
Alexandre Julliard
2e6fc89395
user32/tests: Add some cross-process clipboard tests.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-18 00:09:36 +09:00
Alexandre Julliard
0a1f9bec6d
user32/tests: Add tests for clipboard global memory handles.
...
The GMEM_FIXED tests are based on a patch by Rafał Harabień.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-17 17:22:46 +09:00
Nikolay Sivov
17987c589f
user32: Handle invalid dialog handles in IsDialogMessage().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-17 11:53:41 +09:00
Michael Stefaniuc
d8a970f94a
user32/tests: Remove an identical if/else branch.
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-10 22:22:57 +09:00
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
Andrew Eikum
c1c3198aa4
user32: Don't always insert menu items during WM_MDISETMENU.
...
MSDN says WM_MDISETMENU shouldn't change the frame menu if it is given
as NULL. Tests bear that out. Some other tests are included to show we
haven't broken behavior on e.g. initially maximized MDI child windows.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-08 18:41:29 +09:00
Michael Stefaniuc
c80ba53864
user32/tests: Make use of todo_wine_if().
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-04 16:50:52 -05:00
Dmitry Timoshkov
59ba31d1fc
user32: Properly handle invalid parameters in CharToOem[Buff]W and OemToChar[Buff]W.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-08 20:12:12 +09:00