Francois Gouget
6ccd78e35f
user32/tests: Avoid a couple of unneeded strlen() calls.
...
Note that DeviceString is an array field and thus cannot be NULL.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-09 23:47:46 +01:00
Zhiyi Zhang
11065839f5
user32/tests: Use a higher resolution in test_ChangeDisplaySettingsEx().
...
640x480 is not supported on some Windows 10 versions.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-04 09:35:06 +01:00
Zhiyi Zhang
dbab697da8
user32/tests: Test cursor clip rectangles in per-monitor aware context.
...
So the tests don't fail in HiDPI environment.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-04 09:34:59 +01:00
Zhiyi Zhang
4fc651db92
user32/tests: Import functions if possible.
...
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-04 09:34:40 +01:00
Zhiyi Zhang
b95c4c229c
user32/tests: Fix monitor test failures on some systems.
...
On some systems, the monitor name may not be Default_Monitor,
so check format instead.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-07 15:20:56 +01:00
Zhiyi Zhang
a985771f83
user32: Implement EnumDisplayDevicesW().
...
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-13 08:21:00 +02:00
Zhiyi Zhang
8f5fbfeb42
user32: Improve EnumDisplayDevicesW stub.
...
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-13 08:21:00 +02:00
Zhiyi Zhang
eada617881
winex11.drv: Initialize adapter registry data.
...
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-13 08:20:01 +02:00
Zhiyi Zhang
52a3d5db48
winex11.drv: Add Xinerama display device handler.
...
Display device handlers are used to initialize the display device
registry data. Different handlers can be implemented according to
the defined interface, for example, via Xinerama or XRandR.
With those registry data, EnumDisplayDevices, EnumDisplayMonitors
and GetMonitorInfo can be built on top of it.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-13 08:09:55 +02:00
Francois Gouget
c530d4943f
user32/tests: Remove a space before a '\n'.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-12 20:32:51 +01:00
Zhiyi Zhang
741b673bc9
user32/tests: Add more EnumDisplayDevices tests.
...
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-26 20:56:30 +01:00
André Hentschel
bfad5527ac
user32/tests: Allow newer Win10 behaviour.
...
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-18 21:09:23 +02:00
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
Michael Stefaniuc
b03e800fe1
user32/tests: Avoid ARRAY_SIZE-like macros.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-28 18:27:13 +02: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
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
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
Nikolay Sivov
8b353f5409
user32: Added a GetDisplayConfigBufferSizes stub.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-26 16:16:54 +09:00
Patrick Rudolph
66316964a9
user32/tests: Add tests for valid cbSize in GetMonitorInfoW.
2014-04-24 11:38:24 +02:00
Patrick Rudolph
24c572874d
user32/tests: Add tests for valid cbSize in GetMonitorInfoA.
2014-04-22 18:45:30 +02:00
Vincent Povirk
ef5341b4d7
user32/tests: Add tests for MonitorFromRect.
2014-01-28 11:50:42 +01:00
Dmitry Timoshkov
33ff6d2549
user32/tests: Fix monitor tests compilation with __WINESRC__ defined.
2013-10-24 10:44:09 +02:00
Michael Stefaniuc
824974cee4
user32/tests: Fix the expected values in some ok() messages.
2012-06-04 19:36:15 +02:00
Alexandre Julliard
6b0d9ff1cd
server: Allow setting a zero-size clip rectangle.
2011-06-21 15:04:24 +02:00
Francois Gouget
8b28508d2b
user32/tests: Use win_skip() to skip over unimplemented functionality.
2009-02-23 12:21:21 +01:00
Alexandre Julliard
e55a691ded
user32/tests: Accept DISP_CHANGE_RESTART also for tests expected to fail.
2009-01-27 14:38:23 +01:00
Alexandre Julliard
4bec383d9f
user32/tests: Fix various failures in the monitor test.
2009-01-25 17:28:39 +01:00
Alexandre Julliard
dcd8cf7214
user32/tests: Fix the monitor tests on NT4.
2008-11-20 20:06:46 +01:00
Paul Vriens
919bd61203
user32/tests: Fix a test failure on Win9x, WinMe and NT4.
2008-11-17 14:45:57 +01:00
Alexandre Julliard
392387400e
user32/tests: Fix some test failures on win9x.
2008-09-17 16:29:32 +02:00
Dmitry Timoshkov
077cd6a9f5
user32: Fix the work area test to pass on Windows when the taskbar is on top.
2008-09-11 11:47:12 +02:00
Dmitry Timoshkov
dddec81dfb
user32: Add a test for monitor work area, fix some failures.
2008-08-27 13:21:20 +02:00
Dmitry Timoshkov
47b4960129
user32: Make ChangeDisplaySettingsA/W reset dmDriverExtra to 0 like XP and Vista do.
2008-05-19 13:35:48 +02:00
Dmitry Timoshkov
78718a41c7
user32: Add a test for an invalid DEVMODE passed to ChangeDisplaySettings, make it pass under Wine.
2007-12-20 10:47:49 +01:00
Paul Vriens
5748f15826
user32/tests: Run tests on win95 again.
2007-08-16 11:08:13 +02:00
Francois Gouget
d9e8a0f63e
Remove unneeded checks on the GetModuleHandle() return value for cases where we are linked with the dll.
2007-03-28 12:36:13 +02:00
Francois Gouget
3bf42961a8
user32/tests: Fix the ChangeDisplaySettingsEx() test so it succeeds on NT4.
2007-02-23 11:24:19 +01:00
Paul Vriens
75414bb4ad
user32/tests: Make sure the tests run on NT4 again.
2006-12-18 11:40:10 +01:00
Vitaliy Margolen
1d9ea46cd4
user32: ClipCursor should use virtual screen resolution for empty/invalid rects.
2006-12-14 21:13:15 +01:00
Alexandre Julliard
b8a2e3b8a4
user32: Renamed the user/ directory to user32.
2006-11-16 14:49:25 +01:00