summaryrefslogtreecommitdiffstats
path: root/tests/auto/qtreeview
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-11-16 20:14:19 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-11-16 20:15:41 (GMT)
commit5f2489ef78956223d7f52ed02c1e580921883803 (patch)
tree058f91b5c3b0e6830f8d452d51703416ab485de3 /tests/auto/qtreeview
parentd456f0ba9781471e962d58cefdced0233d4f8a9d (diff)
downloadQt-5f2489ef78956223d7f52ed02c1e580921883803.zip
Qt-5f2489ef78956223d7f52ed02c1e580921883803.tar.gz
Qt-5f2489ef78956223d7f52ed02c1e580921883803.tar.bz2
Stabilize tests on X11
Diffstat (limited to 'tests/auto/qtreeview')
-rw-r--r--tests/auto/qtreeview/tst_qtreeview.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qtreeview/tst_qtreeview.cpp b/tests/auto/qtreeview/tst_qtreeview.cpp
index 58f059b..4fc6dd3 100644
--- a/tests/auto/qtreeview/tst_qtreeview.cpp
+++ b/tests/auto/qtreeview/tst_qtreeview.cpp
@@ -3653,7 +3653,9 @@ void tst_QTreeView::doubleClickedWithSpans()
view.setModel(&model);
view.setFirstColumnSpanned(0, QModelIndex(), true);
view.show();
+ QApplication::setActiveWindow(&view);
QTest::qWaitForWindowShown(&view);
+ QTRY_VERIFY(view.isActiveWindow());
QPoint p(10, 10);
QCOMPARE(view.indexAt(p), model.index(0, 0));