Signed-off-by: Zhiyi Zhang zzhang@codeweavers.com --- dlls/user32/tests/win.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c index 56072bebf7..948b133701 100644 --- a/dlls/user32/tests/win.c +++ b/dlls/user32/tests/win.c @@ -8432,6 +8432,26 @@ static void test_fullscreen(void) } }
+ /* Test restoring a full screen window with WS_THICKFRAME style to normal */ + /* Add WS_THICKFRAME style later so that the window can cover the entire monitor */ + hwnd = CreateWindowA("fullscreen_class", NULL, WS_POPUP | WS_VISIBLE, 0, 0, mi.rcMonitor.right, + mi.rcMonitor.bottom, NULL, NULL, GetModuleHandleA(NULL), NULL); + ok(!!hwnd, "CreateWindow failed, error %#x.\n", GetLastError()); + flush_events(TRUE); + + /* Add WS_THICKFRAME and exit full screen */ + SetWindowLongA(hwnd, GWL_STYLE, GetWindowLongA(hwnd, GWL_STYLE) | WS_THICKFRAME); + SetWindowPos(hwnd, 0, 0, 0, 100, 100, SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOCOPYBITS); + flush_events(TRUE); + + GetWindowRect(hwnd, &rc); + /* FVWM used by the TestBots are not EWMH compliant. So this bug doesn't appear on TestBots. */ + todo_wine_if(rc.right - rc.left != 100) + ok(rc.right - rc.left == 100, "Expect width %d, got %d.\n", 100, rc.right - rc.left); + todo_wine_if(rc.bottom - rc.top != 100) + ok(rc.bottom - rc.top == 100, "Expect height %d, got %d.\n", 100, rc.bottom - rc.top); + DestroyWindow(hwnd); + UnregisterClassA("fullscreen_class", GetModuleHandleA(NULL)); }
Hi,
While running your changed tests, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check?
Full results can be found at: https://testbot.winehq.org/JobDetails.pl?Key=67795
Your paranoid android.
=== w1064v1809 (32 bit report) ===
user32: win.c:3852: Test failed: hwnd 0005005E message 0738
=== w1064v1809_2scr (32 bit report) ===
user32: win.c:3167: Test failed: GetActiveWindow() = 00050032 win.c:3170: Test failed: GetFocus() = 00000000 win.c:3182: Test failed: GetFocus() = 00000000 win.c:3185: Test failed: GetFocus() = 00000000 win.c:3188: Test failed: GetFocus() = 00000000 win.c:3191: Test failed: GetActiveWindow() = 00050032 win.c:3195: Test failed: GetFocus() = 00000000 win.c:3198: Test failed: GetFocus() = 00000000 win.c:3892: Test failed: hwnd 000201A4/000B0326 message 0737 win.c:3897: Test failed: hwnd 000B0326/000B0326 message 0202 win.c:3902: Test failed: hwnd 000B0326/000B0326 message 0203 win.c:3906: Test failed: message 0202 available
=== w1064v1809_ja (32 bit report) ===
user32: win.c:970: Test failed: wrong dwWindowStatus: 0001 != 0000 active 00070300 fg 00040078 in hook HCBT_ACTIVATE win.c:4257: Test failed: SetForegroundWindow() failed win.c:3727: Test failed: message 0738 available win.c:3852: Test failed: hwnd 000202FC message 7fff win.c:3931: Test failed: hwnd 000202FC/001300F6 message 7fff win.c:3934: Test failed: hwnd 000202FC/001300F6 message 7fff
=== w1064v1809_zh_CN (32 bit report) ===
user32: win.c:9459: Test failed: didn't get start_event win.c:9463: Test failed: WindowFromPoint returned 000203DE, expected 00000000 win.c:9471: Test failed: WindowFromPoint returned 000203DA, expected 00000000 win.c:9400: Test failed: transparent window didn't get WM_NCHITTEST message win.c:9401: Test failed: button under static window didn't get WM_LBUTTONUP win.c:3852: Test failed: hwnd 00010382 message 0282 win.c:3931: Test failed: hwnd 00010382/000C03A6 message 0282 win.c:3934: Test failed: hwnd 00010382/000C03A6 message 0282
=== w1064v1809 (64 bit report) ===
user32: win.c:9401: Test failed: button under static window didn't get WM_LBUTTONUP win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3407: Test failed: VK_LBUTTON should not be pressed, state ff81 win.c:3167: Test failed: GetActiveWindow() = 000000000003004E win.c:3170: Test failed: GetFocus() = 0000000000000000 win.c:3182: Test failed: GetFocus() = 0000000000000000 win.c:3185: Test failed: GetFocus() = 0000000000000000 win.c:3188: Test failed: GetFocus() = 0000000000000000 win.c:3191: Test failed: GetActiveWindow() = 000000000003004E win.c:3195: Test failed: GetFocus() = 0000000000000000 win.c:3198: Test failed: GetFocus() = 0000000000000000 win.c:3892: Test failed: hwnd 000000000003004C/00000000004D00E0 message 0737 win.c:3897: Test failed: hwnd 00000000004D00E0/00000000004D00E0 message 0202 win.c:3902: Test failed: hwnd 00000000004D00E0/00000000004D00E0 message 0203 win.c:3906: Test failed: message 0202 available