diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-25 18:22:31 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-28 09:50:20 (GMT) |
commit | 3cb2def34c32efe1155e6938eca65706dcc97aac (patch) | |
tree | 4471485f0ca6dcda935cbf20f067994b2b89a695 /tests/auto/qmdisubwindow | |
parent | ce6f58a54ccbf6c83cb2b4d725efb8fc5e1f261f (diff) | |
download | Qt-3cb2def34c32efe1155e6938eca65706dcc97aac.zip Qt-3cb2def34c32efe1155e6938eca65706dcc97aac.tar.gz Qt-3cb2def34c32efe1155e6938eca65706dcc97aac.tar.bz2 |
Stabilize some more tests
Diffstat (limited to 'tests/auto/qmdisubwindow')
-rw-r--r-- | tests/auto/qmdisubwindow/tst_qmdisubwindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qmdisubwindow/tst_qmdisubwindow.cpp b/tests/auto/qmdisubwindow/tst_qmdisubwindow.cpp index d5d125a..b897d8f 100644 --- a/tests/auto/qmdisubwindow/tst_qmdisubwindow.cpp +++ b/tests/auto/qmdisubwindow/tst_qmdisubwindow.cpp @@ -1648,9 +1648,9 @@ void tst_QMdiSubWindow::resizeTimer() QMdiArea mdiArea; QMdiSubWindow *subWindow = mdiArea.addSubWindow(new QWidget); mdiArea.show(); -#ifdef Q_WS_X11 - qt_x11_wait_for_window_manager(&mdiArea); -#endif + QTest::qWaitForWindowShown(&mdiArea); + QTest::qWait(250); + EventSpy timerEventSpy(subWindow, QEvent::Timer); QCOMPARE(timerEventSpy.count(), 0); |