diff options
author | Fabien Freling <fabien.freling@nokia.com> | 2011-05-02 10:52:25 +0200 |
---|---|---|
committer | Fabien Freling <fabien.freling@nokia.com> | 2011-05-10 11:45:30 +0200 |
commit | 1dab1ce6af149a1a9b3cc1be7aeb7a09bfd56b19 (patch) | |
tree | 3996bd68641423cb2c7240ccc9ff5ac7b192947a /tests/auto/qwidget/tst_qwidget.cpp | |
parent | 5839b221a043d99558c36b77dcf3ac4093dfc8f5 (diff) |
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
(cherry picked from commit 75d2387fbf005b022437855ab6433790372639f8)
Diffstat (limited to 'tests/auto/qwidget/tst_qwidget.cpp')
-rw-r--r-- | tests/auto/qwidget/tst_qwidget.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qwidget/tst_qwidget.cpp b/tests/auto/qwidget/tst_qwidget.cpp index 35014c975a..9c2f6ea200 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); |