diff options
author | Olivier Goffart <olivier.goffart@nokia.com> | 2010-05-11 07:59:56 (GMT) |
---|---|---|
committer | Olivier Goffart <olivier.goffart@nokia.com> | 2010-05-11 07:59:56 (GMT) |
commit | a7b128ae838b006be1259ef6ba79da5440ed52dd (patch) | |
tree | 598694d5f6df44f6dda50ed8c574511ff7688c4e | |
parent | 121e325e7bb2f14f4c9e4e25078ac16b47dcd372 (diff) | |
download | Qt-a7b128ae838b006be1259ef6ba79da5440ed52dd.zip Qt-a7b128ae838b006be1259ef6ba79da5440ed52dd.tar.gz Qt-a7b128ae838b006be1259ef6ba79da5440ed52dd.tar.bz2 |
Stabilize tst_QColumnView::parentCurrentIndex
-rw-r--r-- | tests/auto/qcolumnview/tst_qcolumnview.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/qcolumnview/tst_qcolumnview.cpp b/tests/auto/qcolumnview/tst_qcolumnview.cpp index 90f499d..1da8c5d 100644 --- a/tests/auto/qcolumnview/tst_qcolumnview.cpp +++ b/tests/auto/qcolumnview/tst_qcolumnview.cpp @@ -596,11 +596,11 @@ void tst_QColumnView::clicked() QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, localPoint); QCOMPARE(clickedSpy.count(), 1); qApp->processEvents(); - + if (sizeof(qreal) != sizeof(double)) { QSKIP("Skipped due to rounding errors", SkipAll); } - + for (int i = 0; i < view.createdColumns.count(); ++i) { QAbstractItemView *column = view.createdColumns.at(i); if (column && column->selectionModel() && (column->rootIndex() == home)) @@ -961,9 +961,9 @@ void tst_QColumnView::parentCurrentIndex() QVERIFY(third.isValid()); view.setCurrentIndex(third); QTest::qWait(ANIMATION_DELAY); - QCOMPARE(view.createdColumns[0]->currentIndex(), first); - QCOMPARE(view.createdColumns[1]->currentIndex(), second); - QCOMPARE(view.createdColumns[2]->currentIndex(), third); + QTRY_COMPARE(view.createdColumns[0]->currentIndex(), first); + QTRY_COMPARE(view.createdColumns[1]->currentIndex(), second); + QTRY_COMPARE(view.createdColumns[2]->currentIndex(), third); first = model.index(0, 0, QModelIndex()); second = model.index(secondRow, 0, first); |