stabilize tst_TouchMouse::touchButtonOnFlickable

FAIL!  : tst_TouchMouse::touchButtonOnFlickable() Compared values are not the same
    Actual   (eventItem2->touchUngrabCount): 0
    Expected (1)                           : 1
 tst_touchmouse.cpp(673) : failure location

Task-number: QTBUG-66278
Change-Id: I20ed910091b7c894aeaf6639d738105022730940
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
This commit is contained in:
Shawn Rutledge 2018-03-02 13:56:03 +01:00
parent 73ab709ae2
commit 950ca8dee7
1 changed files with 1 additions and 1 deletions

View File

@ -668,9 +668,9 @@ void tst_TouchMouse::touchButtonOnFlickable()
QTest::touchEvent(window.data(), device).move(0, p3, window.data());
QQuickTouchUtils::flush(window.data());
QTRY_COMPARE(eventItem2->touchUngrabCount, 1);
QVERIFY(eventItem2->eventList.size() > 2);
QCOMPARE(eventItem2->eventList.at(1).type, QEvent::TouchUpdate);
QCOMPARE(eventItem2->touchUngrabCount, 1);
QCOMPARE(window->mouseGrabberItem(), flickable);
QVERIFY(windowPriv->touchMouseId != -1);
QCOMPARE(pointerEvent->point(0)->grabberItem(), flickable);