Stabilize tst_QQuickPathView:dataModel()
authorJ-P Nurmi <jpnurmi@digia.com>
Wed, 5 Mar 2014 19:25:14 +0000 (20:25 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 6 Mar 2014 00:01:00 +0000 (01:01 +0100)
commitb23b32f64f32c10795d150f7f26a20e48bd9a05e
tree057622f080d2a0fd4d43974845c1968c02c93e11
parent71ec1e0e059589940ca3791bd5bef75360014703
Stabilize tst_QQuickPathView:dataModel()

- QQuickPathView::setCurrentIndex() result must be immediate
  => no need for random QTest::qWait(100) there.
- Remove another random QTest::qWait(100) after inserting
  a model item. Instead, wait for the desired result ie.
  delegate creation with QTRY_VERIFY().
- Furthermore, disable the default highlight move duration to
  avoid the auto test and QQuickPathView's internal timeline
  fighting over the current index.

Task-number: QTBUG-35705
Change-Id: Ie53fdcc8f7955a03027da38b075e6042a3aea7f2
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
tests/auto/quick/qquickpathview/data/datamodel.qml
tests/auto/quick/qquickpathview/tst_qquickpathview.cpp