From 2cb0292aaa2aa60dbfdcc0391753774bf3823151 Mon Sep 17 00:00:00 2001 From: Paul Olav Tvete Date: Wed, 9 Sep 2009 10:38:23 +0200 Subject: Tweak the test Give it another spin through the event loop, to make sure that all the painting gets done. (This is not connected to the glib timer event test failure.) --- tests/auto/qwswindowsystem/tst_qwswindowsystem.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/auto/qwswindowsystem/tst_qwswindowsystem.cpp b/tests/auto/qwswindowsystem/tst_qwswindowsystem.cpp index 3a2e79b..014074a 100644 --- a/tests/auto/qwswindowsystem/tst_qwswindowsystem.cpp +++ b/tests/auto/qwswindowsystem/tst_qwswindowsystem.cpp @@ -239,6 +239,7 @@ void tst_QWSWindowSystem::windowOpacity() QColor(255, 255, 255, 0)); w2.setPalette(palette); QApplication::processEvents(); + QApplication::processEvents(); QCOMPARE(win1->allocatedRegion(), QRegion(rect)); QCOMPARE(win2->allocatedRegion(), QRegion(rect)); VERIFY_COLOR(rect, w1.color()); -- cgit v0.12