summaryrefslogtreecommitdiff
path: root/tests/auto/qtreeview
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-09-30 19:38:46 +0200
committerOlivier Goffart <ogoffart@trolltech.com>2009-09-30 19:54:23 +0200
commite8fc662c4b5a0fa5da6f0d47e1dbb5b2640d7001 (patch)
tree17388605ed0567ffa80e65b2417d525b2468ea8f /tests/auto/qtreeview
parent1827669c08580ec309ac6e13c6684e6dbcf18ec4 (diff)
downloadqt4-tools-e8fc662c4b5a0fa5da6f0d47e1dbb5b2640d7001.tar.gz
Stabilize tests on X11
Diffstat (limited to 'tests/auto/qtreeview')
-rw-r--r--tests/auto/qtreeview/tst_qtreeview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qtreeview/tst_qtreeview.cpp b/tests/auto/qtreeview/tst_qtreeview.cpp
index 112bcc8feb..91b2cc5529 100644
--- a/tests/auto/qtreeview/tst_qtreeview.cpp
+++ b/tests/auto/qtreeview/tst_qtreeview.cpp
@@ -3113,7 +3113,7 @@ void tst_QTreeView::task224091_appendColumns()
treeView->show();
treeView->resize(50,50);
- QTest::qWait(50);
+ QTest::qWaitForWindowShown(treeView);
qApp->processEvents();
QList<QStandardItem *> projlist;
@@ -3125,7 +3125,7 @@ void tst_QTreeView::task224091_appendColumns()
QTest::qWait(50);
qApp->processEvents();
- QVERIFY(treeView->verticalScrollBar()->isVisible());
+ QTRY_VERIFY(treeView->verticalScrollBar()->isVisible());
delete treeView;
delete model;