summaryrefslogtreecommitdiffstats
path: root/tests/auto/qwidget/tst_qwidget.cpp
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@nokia.com>2009-09-15 11:44:42 +0200
committerPaul Olav Tvete <paul.tvete@nokia.com>2009-09-15 11:45:32 +0200
commit541ff2c0ffbe13424b212bcab145214d5725d49e (patch)
tree7767e3522ae7323aed7ff98be2dbfea5176866ba /tests/auto/qwidget/tst_qwidget.cpp
parent86e1b289c8246befc37455e7caa101fc20e0bc97 (diff)
Make test pass on Windows
Reviewed-by: Jan-Arve
Diffstat (limited to 'tests/auto/qwidget/tst_qwidget.cpp')
-rw-r--r--tests/auto/qwidget/tst_qwidget.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/qwidget/tst_qwidget.cpp b/tests/auto/qwidget/tst_qwidget.cpp
index ad814fd2cd..04b7b396e3 100644
--- a/tests/auto/qwidget/tst_qwidget.cpp
+++ b/tests/auto/qwidget/tst_qwidget.cpp
@@ -9236,13 +9236,15 @@ void tst_QWidget::destroyBackingStore()
w.reset();
w.update();
- QApplication::processEvents();
delete qt_widget_private(&w)->topData()->backingStore;
qt_widget_private(&w)->topData()->backingStore = 0;
qt_widget_private(&w)->topData()->backingStore = new QWidgetBackingStore(&w);
w.update();
QApplication::processEvents();
+#ifdef Q_WS_QWS
+ QApplication::processEvents();
+#endif
QCOMPARE(w.numPaintEvents, 1);
// Check one more time, because the second time around does more caching.