diff options
author | Paul Olav Tvete <paul.tvete@nokia.com> | 2009-09-15 09:44:42 (GMT) |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@nokia.com> | 2009-09-15 09:45:32 (GMT) |
commit | 541ff2c0ffbe13424b212bcab145214d5725d49e (patch) | |
tree | 7767e3522ae7323aed7ff98be2dbfea5176866ba | |
parent | 86e1b289c8246befc37455e7caa101fc20e0bc97 (diff) | |
download | Qt-541ff2c0ffbe13424b212bcab145214d5725d49e.zip Qt-541ff2c0ffbe13424b212bcab145214d5725d49e.tar.gz Qt-541ff2c0ffbe13424b212bcab145214d5725d49e.tar.bz2 |
Make test pass on Windows
Reviewed-by: Jan-Arve
-rw-r--r-- | tests/auto/qwidget/tst_qwidget.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/qwidget/tst_qwidget.cpp b/tests/auto/qwidget/tst_qwidget.cpp index ad814fd..04b7b39 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. |