diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-30 13:57:35 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-30 13:58:46 (GMT) |
commit | fa3cda0324324f595d0d1231027443673b7c05ea (patch) | |
tree | 8916ad1f9204006a5ace3a564810e0cd57fe1a01 /tests/auto/qgraphicsitem | |
parent | 3fa5162526a2d0dba0abd00c52f44ac93f9d78f3 (diff) | |
download | Qt-fa3cda0324324f595d0d1231027443673b7c05ea.zip Qt-fa3cda0324324f595d0d1231027443673b7c05ea.tar.gz Qt-fa3cda0324324f595d0d1231027443673b7c05ea.tar.bz2 |
Stabilize more test on X11
Each times the test are run, pulse show different failures.
Diffstat (limited to 'tests/auto/qgraphicsitem')
-rw-r--r-- | tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp index ef9fe9e..bbf19f2 100644 --- a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp +++ b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp @@ -2925,10 +2925,8 @@ void tst_QGraphicsItem::hoverEventsGenerateRepaints() QGraphicsScene scene; QGraphicsView view(&scene); view.show(); -#ifdef Q_WS_X11 - qt_x11_wait_for_window_manager(&view); -#endif - QTest::qWait(20); + QTest::qWaitForWindowShown(&view); + QTest::qWait(100); EventTester *tester = new EventTester; scene.addItem(tester); @@ -4637,7 +4635,7 @@ void tst_QGraphicsItem::paint() qApp->processEvents(); //First show one paint - QVERIFY(tester2.painted == 1); + QTRY_COMPARE(tester2.painted, 1); //nominal case, update call paint tester2.update(); |