Alexandre Julliard : user32/tests: Remove an unreliable pixel test.

Alexandre Julliard julliard at winehq.org
Fri Feb 20 12:49:55 CST 2009


Module: wine
Branch: master
Commit: 9120ce53f14391dcdfb76eccf87e64b1436d5023
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9120ce53f14391dcdfb76eccf87e64b1436d5023

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Feb 20 16:56:27 2009 +0100

user32/tests: Remove an unreliable pixel test.

---

 dlls/user32/tests/win.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c
index a79bd34..b40887a 100644
--- a/dlls/user32/tests/win.c
+++ b/dlls/user32/tests/win.c
@@ -3440,8 +3440,6 @@ static void test_scrolldc( HWND parent)
     SetRectRgn( tmprgn, 25, 35, 35, 75);
     CombineRgn(exprgn, exprgn, tmprgn, RGN_OR);
     ok(EqualRgn(exprgn, hrgn), "wrong update region\n");
-    colr = GetPixel( hdc, 80, 80);
-    ok ( colr == 0, "pixel should be black, color is %08x\n", colr);
     trace("update rect: %d,%d - %d,%d\n",
            rcu.left, rcu.top, rcu.right, rcu.bottom);
     if (winetest_debug > 0) dump_region(hrgn);
@@ -3651,7 +3649,8 @@ static void test_redrawnow(void)
    ShowWindow(hwndMain, SW_SHOW);
    ok( WMPAINT_count == 0, "Multiple unexpected WM_PAINT calls %d\n", WMPAINT_count);
    RedrawWindow(hwndMain, NULL,NULL,RDW_UPDATENOW | RDW_ALLCHILDREN);
-   ok( WMPAINT_count == 1, "Multiple unexpected WM_PAINT calls %d\n", WMPAINT_count);
+   ok( WMPAINT_count == 1 || broken(WMPAINT_count == 0), /* sometimes on win9x */
+       "Multiple unexpected WM_PAINT calls %d\n", WMPAINT_count);
    redrawComplete = TRUE;
    ok( WMPAINT_count < 10, "RedrawWindow (RDW_UPDATENOW) never completed (%d)\n", WMPAINT_count);
 




More information about the wine-cvs mailing list