reactos/modules/rostests/apitests/user32
Tomáš Veselý 52d6a71461
[USER32_APITEST] Improve RedrawWindow API test by testing flags (#7160)
As part of fixing some bugs like CORE-13149, extend the tests to include more detailed examination of rendering functions. Extend the RedrawWindow test to include tests of all flags. As part of it, I am also testing the 2-point states of the render areas.

I moved the original test without changes into a separate function GetMessageRedrawWindowTest. For the flag tests I added FlagsRedrawWindowTest function. It sequentially tests the RedrawWindow with different flag combinations and compares the results with those discovered in Windows XP and Windows 11 (the values in both versions confirmed to be identical).

The API test turned out well in ReactOS, the only deviation was that in many cases (whenever the RDW_INVALIDATE flag is present) a WM_ERASEBKGND message is received after the window is rendered without the RDW_ERASE flag.
(this is what I'm focusing on now in https://github.com/turican0/reactos/tree/fix-RDW_ERASE-in-co_UserRedrawWindow, but before I merge it, I want to create more API tests)
2024-09-01 14:32:43 +03:00
..
makeimg [USER32_APITEST] Test MSVC rc.exe compiled 32-bpp BI_BITFIELD bmp (#6755) 2024-04-27 13:30:51 -05:00
AttachThreadInput.c [USER32_APITEST] Remove "ugly ros hack" 2023-04-17 00:41:31 +03:00
CharFuncs.c [USER32_APITEST] Add tests for CharPrev/Next/Ex/A/W 2022-11-07 19:02:09 +03:00
CloseWindow.c
CMakeLists.txt [USER32_APITEST] Add scrollbar showing/hiding testcase (#7254) 2024-08-27 13:25:02 -05:00
CopyImage.c [USER32][USER32_APITEST] CopyImage: Check flags (#7075) 2024-07-08 19:24:15 +09:00
cpimg2e.exe [USER32_APITEST] Add test for bad 'Icon Groups' but good 'Icons' such as F1'97 (#6020) 2023-11-26 15:26:05 +00:00
CreateDialog.c [USER32_APITEST] Convert global variables to static ones 2022-04-26 03:38:29 +03:00
CreateIconFromResourceEx.c [FORMATTING] Remove trailing whitespace. Addendum to 34593d93. 2021-09-13 03:52:22 +02:00
CreateWindowEx.c [USER32_APITEST] Convert global variables to static ones 2022-04-26 03:38:29 +03:00
DeferWindowPos.c [USER32_APITEST] Convert global variables to static ones 2022-04-26 03:38:29 +03:00
desktop.c [USER32_APITEST] Convert global variables to static ones 2022-04-26 03:38:29 +03:00
DestroyCursorIcon.c [FORMATTING] Remove trailing whitespace. Addendum to 34593d93. 2021-09-13 03:52:22 +02:00
DM_REPOSITION.c
DrawIconEx.c [FORMATTING] Remove trailing whitespace. Addendum to 34593d93. 2021-09-13 03:52:22 +02:00
DrawText.c
EmptyClipboard.c [USER32_APITEST] Convert global variables to static ones 2022-04-26 03:38:29 +03:00
EnumDisplaySettings.c
GetClassInfo.c [USER32_APITEST] Add tests for GetClassInfo 2023-05-16 21:59:19 +03:00
GetDCEx.c
GetIconInfo.c [FORMATTING] Remove trailing whitespace. Addendum to 34593d93. 2021-09-13 03:52:22 +02:00
GetKeyState.c [USER32_APITEST] Convert global variables to static ones 2022-04-26 03:38:29 +03:00
GetMessageTime.c [USER32_APITEST] Comment out a test for GetMessageTime that randomly fails on Windows 2023-04-17 00:41:31 +03:00
GetPeekMessage.c
GetSetWindowInt.c [USER32_APITEST] Add tests for [Get|Set]Window[Word|Long|LongPtr] 2023-05-16 21:59:19 +03:00
GetSystemMetrics.c
GetUserObjectInformation.c
GetWindowPlacement.c
GW_ENABLEDPOPUP.c [USER32_APITEST][SDK] Add GW_ENABLEDPOPUP testcase (#6564) 2024-03-06 07:52:30 +09:00
image.dll [USER32_APITEST] Test MSVC rc.exe compiled 32-bpp BI_BITFIELD bmp (#6755) 2024-04-27 13:30:51 -05:00
InitializeLpkHooks.c [USER32_APITEST] Convert global variables to static ones 2022-04-26 03:38:29 +03:00
KbdLayout.c [USER32_APITEST] Add tests for Keyboard Layouts 2022-10-05 16:18:16 +03:00
keybd_event.c [NTUSER] Fix UserSendKeyboardInput() KEYEVENTF_SCANCODE use case (CORE-17144) 2021-09-25 09:56:12 -04:00
LoadImage.c [USER32] Support loading icons from data file module (#6065) 2023-12-17 22:11:50 +01:00
LoadImageGCC.c [USER32_APITEST] Test MSVC rc.exe compiled 32-bpp BI_BITFIELD bmp (#6755) 2024-04-27 13:30:51 -05:00
LookupIconIdFromDirectoryEx.c [FORMATTING] Remove trailing whitespace. Addendum to 34593d93. 2021-09-13 03:52:22 +02:00
MessageStateAnalyzer.c [USER32_APITEST] Follow-up of c39bf0d 2023-03-20 16:33:11 +09:00
NextDlgItem.c
precomp.h Add missing OEMRESOURCE for using the OBM_, OIC_, OCR_ defines from winuser.h 2023-11-22 17:02:45 +01:00
PrivateExtractIcons.c [USER32_APITEST] Add test for bad 'Icon Groups' but good 'Icons' such as F1'97 (#6020) 2023-11-26 15:26:05 +00:00
RealGetWindowClass.c
RedrawWindow.c [USER32_APITEST] Improve RedrawWindow API test by testing flags (#7160) 2024-09-01 14:32:43 +03:00
RegisterClassEx.c [FORMATTING] Remove trailing whitespace. Addendum to 34593d93. 2021-09-13 03:52:22 +02:00
RegisterHotKey.c
resource.h [USER32_APITEST] Test MSVC rc.exe compiled 32-bpp BI_BITFIELD bmp (#6755) 2024-04-27 13:30:51 -05:00
ROS.ico [USER32_APITEST] Improve user32:PrivateExtractIcons test (#5209) 2023-07-10 22:24:41 +03:00
ScrollBarRedraw.c [USER32_APITEST] Add scrollbar showing/hiding testcase (#7254) 2024-08-27 13:25:02 -05:00
ScrollBarWndExtra.c
ScrollDC.c
ScrollWindowEx.c
SendMessageTimeout.c
SetActiveWindow.c [USER32_APITEST] Convert global variables to static ones 2022-04-26 03:38:29 +03:00
SetCursorPos.c [USER32_APITEST] Convert global variables to static ones 2022-04-26 03:38:29 +03:00
SetFocus.c [USER32_APITEST] Add SetFocus testcase (#3732) 2021-06-09 16:14:31 +09:00
SetParent.c
SetProp.c
SetScrollInfo.c
SetScrollRange.c
SetWindowPlacement.c [USER32_APITEST] Add SetWindowPlacement testcase (#7082) 2024-07-08 00:34:18 +09:00
ShowWindow.c
SwitchToThisWindow.c
sysicon.ico [USER32_APITEST] Improve user32:PrivateExtractIcons test (#5209) 2023-07-10 22:24:41 +03:00
SystemMenu.c [USER32_APITEST] Add a test for system menu messages (#5573) 2023-08-24 16:33:03 +02:00
SystemParametersInfo.c [USER32_APITEST] Convert global variables to static ones 2022-04-26 03:38:29 +03:00
test.cur
test.ico
testlist.c [USER32_APITEST] Add scrollbar showing/hiding testcase (#7254) 2024-08-27 13:25:02 -05:00
TrackMouseEvent.c [USER32_APITEST] Convert global variables to static ones 2022-04-26 03:38:29 +03:00
user32_apitest.rc [USER32_APITEST] Test MSVC rc.exe compiled 32-bpp BI_BITFIELD bmp (#6755) 2024-04-27 13:30:51 -05:00
verclasstest1.manifest
verclasstest2.manifest
VirtualKey.c [USER32_APITEST] Add tests for MapVirtualKeyW 2022-10-02 02:46:24 +03:00
WndProc.c [User32|API_TEST] Add Get Window Ptr Test 2021-11-27 14:47:11 -06:00
wsprintf.c