Zhiyi Zhang : user32/tests: Mark some GetDeviceCaps() tests as todo on Wine.

Alexandre Julliard julliard at winehq.org
Tue Dec 24 13:45:08 CST 2019


Module: wine
Branch: master
Commit: 59e52108d5b83b7b549a3d4bc459887b8c7549c1
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=59e52108d5b83b7b549a3d4bc459887b8c7549c1

Author: Zhiyi Zhang <zzhang at codeweavers.com>
Date:   Tue Dec 24 15:35:41 2019 +0800

user32/tests: Mark some GetDeviceCaps() tests as todo on Wine.

GetDeviceCaps(hdc, DESKTOPHORZRES/DESKTOPVERTRES) on Windows reports
the primary desktop, but on Wine it reports the virtual screen.

Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/user32/tests/sysparams.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/user32/tests/sysparams.c b/dlls/user32/tests/sysparams.c
index 645c188008..e40d49e8f8 100644
--- a/dlls/user32/tests/sysparams.c
+++ b/dlls/user32/tests/sysparams.c
@@ -3267,6 +3267,7 @@ static void test_dpi_mapping(void)
         ok( EqualRect( &expect, &rect ), "%lu: wrong caps desktop rect %s expected %s\n",
             i, wine_dbgstr_rect(&rect), wine_dbgstr_rect(&expect) );
         SetRect( &rect, 0, 0, GetDeviceCaps( hdc, DESKTOPHORZRES ), GetDeviceCaps( hdc, DESKTOPVERTRES ));
+        todo_wine_if(monitor_count > 1)
         ok( EqualRect( &desktop, &rect ), "%lu: wrong caps virt desktop rect %s expected %s\n",
             i, wine_dbgstr_rect(&rect), wine_dbgstr_rect(&desktop) );
         DeleteDC( hdc );
@@ -3345,6 +3346,7 @@ static void test_dpi_mapping(void)
             ok( EqualRect( &expect, &rect ), "%lu/%lu: wrong DC resolution %s expected %s\n",
                 i, j, wine_dbgstr_rect(&rect), wine_dbgstr_rect(&expect) );
             SetRect( &rect, 0, 0, GetDeviceCaps( hdc, DESKTOPHORZRES ), GetDeviceCaps( hdc, DESKTOPVERTRES ));
+            todo_wine_if(monitor_count > 1)
             ok( EqualRect( &desktop, &rect ), "%lu/%lu: wrong desktop resolution %s expected %s\n",
                 i, j, wine_dbgstr_rect(&rect), wine_dbgstr_rect(&desktop) );
             ReleaseDC( hwnd, hdc );




More information about the wine-cvs mailing list