diff options
author | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-09-01 09:35:22 (GMT) |
---|---|---|
committer | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-09-01 09:38:11 (GMT) |
commit | ab45aa26a040bdf84dc923792f5f384dd51f906d (patch) | |
tree | 1813d248ec8035b33b904a199695f132396ccf77 | |
parent | fa7bed077d882d32e208c6f3879bac6355bb3726 (diff) | |
download | Qt-ab45aa26a040bdf84dc923792f5f384dd51f906d.zip Qt-ab45aa26a040bdf84dc923792f5f384dd51f906d.tar.gz Qt-ab45aa26a040bdf84dc923792f5f384dd51f906d.tar.bz2 |
Make test more reliable - wait after show.
This test failed randomly in the past, and more often on a KDE4
desktop with a slow graphics card.
-rw-r--r-- | tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp index 2acb76d..aa1f2b8 100644 --- a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp +++ b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp @@ -5420,6 +5420,7 @@ void tst_QGraphicsItem::contextMenuEventPropagation() qt_x11_wait_for_window_manager(&view); #endif view.resize(200, 200); + QTest::qWait(250); QContextMenuEvent event(QContextMenuEvent::Mouse, QPoint(10, 10), view.viewport()->mapToGlobal(QPoint(10, 10))); |