summaryrefslogtreecommitdiffstats
path: root/tests/auto/qwidget/tst_qwidget.cpp
diff options
context:
space:
mode:
authorFabien Freling <fabien.freling@nokia.com>2011-05-02 08:52:25 (GMT)
committerFabien Freling <fabien.freling@nokia.com>2011-05-02 08:54:58 (GMT)
commit75d2387fbf005b022437855ab6433790372639f8 (patch)
treef986a7e8748752df6d3279b8585114994f608f94 /tests/auto/qwidget/tst_qwidget.cpp
parent244fedd484b022881b906b1bc794d5af19d02843 (diff)
downloadQt-75d2387fbf005b022437855ab6433790372639f8.zip
Qt-75d2387fbf005b022437855ab6433790372639f8.tar.gz
Qt-75d2387fbf005b022437855ab6433790372639f8.tar.bz2
Fix the update() autotest for raster.
With the CoreGraphics engine, we expect the test to fail with update(), but with the raster engine the behavior is the same across platforms. Hence we don't need a special case for Mac OS X with the raster engine. Reviewed-by: Samuel Rødal
Diffstat (limited to 'tests/auto/qwidget/tst_qwidget.cpp')
-rw-r--r--tests/auto/qwidget/tst_qwidget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qwidget/tst_qwidget.cpp b/tests/auto/qwidget/tst_qwidget.cpp
index 35014c9..9c2f6ea 100644
--- a/tests/auto/qwidget/tst_qwidget.cpp
+++ b/tests/auto/qwidget/tst_qwidget.cpp
@@ -4738,7 +4738,8 @@ void tst_QWidget::update()
QCOMPARE(w.visibleRegion(), expectedVisible);
QCOMPARE(w.paintedRegion, expectedVisible);
#ifdef QT_MAC_USE_COCOA
- QEXPECT_FAIL(0, "Cocoa compositor says to paint this.", Continue);
+ if (QApplicationPrivate::graphics_system_name != QLatin1String("raster"))
+ QEXPECT_FAIL(0, "Cocoa compositor says to paint this.", Continue);
#endif
QCOMPARE(child.numPaintEvents, 0);