summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
diff options
context:
space:
mode:
authorAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-09-01 11:35:22 +0200
committerAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-09-01 11:38:11 +0200
commitab45aa26a040bdf84dc923792f5f384dd51f906d (patch)
tree1813d248ec8035b33b904a199695f132396ccf77 /tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
parentfa7bed077d882d32e208c6f3879bac6355bb3726 (diff)
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.
Diffstat (limited to 'tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp')
-rw-r--r--tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
index 2acb76dd0d..aa1f2b8a35 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)));