diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2020-11-27 20:19:01 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2020-11-29 20:00:08 +0100 |
commit | 966d444eddaa775b9ca81e1567d305f4de276fff (patch) | |
tree | c0798190a408c91ca84cd7ae82e42623f27c1ee9 /tests/auto/quick | |
parent | 71588f7b3d179e0d77e4853bbe7908beb2518963 (diff) |
Speed up tst_FlickableInterop::touchAndDragHandlerOnFlickable
Change-Id: I9d01dc00c68979aa9288820fddaaa7b0208bec9b
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests/auto/quick')
6 files changed, 54 insertions, 0 deletions
diff --git a/tests/auto/quick/pointerhandlers/flickableinterop/data/dragOnFlickable.qml b/tests/auto/quick/pointerhandlers/flickableinterop/data/dragOnFlickable.qml index fd32baad10..7bdae0e76b 100644 --- a/tests/auto/quick/pointerhandlers/flickableinterop/data/dragOnFlickable.qml +++ b/tests/auto/quick/pointerhandlers/flickableinterop/data/dragOnFlickable.qml @@ -36,6 +36,15 @@ Flickable { contentWidth: 1000 contentHeight: 600 + // faster rebound to speed up test runs + rebound: Transition { + NumberAnimation { + properties: "x,y" + duration: 30 + easing.type: Easing.OutBounce + } + } + Rectangle { anchors.fill: parent color: "transparent" diff --git a/tests/auto/quick/pointerhandlers/flickableinterop/data/dragOnList.qml b/tests/auto/quick/pointerhandlers/flickableinterop/data/dragOnList.qml index b7f4662476..92f3a45e7e 100644 --- a/tests/auto/quick/pointerhandlers/flickableinterop/data/dragOnList.qml +++ b/tests/auto/quick/pointerhandlers/flickableinterop/data/dragOnList.qml @@ -38,6 +38,15 @@ ListView { model: 10 spacing: 2 + // faster rebound to speed up test runs + rebound: Transition { + NumberAnimation { + properties: "x,y" + duration: 30 + easing.type: Easing.OutBounce + } + } + delegate: Rectangle { objectName: "itemview delegate" color: delegateDrag.active ? "wheat" : "beige" diff --git a/tests/auto/quick/pointerhandlers/flickableinterop/data/dragOnTable.qml b/tests/auto/quick/pointerhandlers/flickableinterop/data/dragOnTable.qml index 43cc44f62e..1726c1019a 100644 --- a/tests/auto/quick/pointerhandlers/flickableinterop/data/dragOnTable.qml +++ b/tests/auto/quick/pointerhandlers/flickableinterop/data/dragOnTable.qml @@ -40,6 +40,15 @@ TableView { // TODO use TableModel when it's ready, to test with multiple columns model: 10 + // faster rebound to speed up test runs + rebound: Transition { + NumberAnimation { + properties: "x,y" + duration: 30 + easing.type: Easing.OutBounce + } + } + delegate: Rectangle { id: tableDelegate objectName: "itemview delegate" diff --git a/tests/auto/quick/pointerhandlers/flickableinterop/data/tapOnFlickable.qml b/tests/auto/quick/pointerhandlers/flickableinterop/data/tapOnFlickable.qml index a71db0b4c2..56ae514b96 100644 --- a/tests/auto/quick/pointerhandlers/flickableinterop/data/tapOnFlickable.qml +++ b/tests/auto/quick/pointerhandlers/flickableinterop/data/tapOnFlickable.qml @@ -36,6 +36,15 @@ Flickable { contentWidth: 1000 contentHeight: 600 + // faster rebound to speed up test runs + rebound: Transition { + NumberAnimation { + properties: "x,y" + duration: 30 + easing.type: Easing.OutBounce + } + } + Rectangle { objectName: "button" anchors.centerIn: parent diff --git a/tests/auto/quick/pointerhandlers/flickableinterop/data/tapOnList.qml b/tests/auto/quick/pointerhandlers/flickableinterop/data/tapOnList.qml index ef27955043..aeab188e98 100644 --- a/tests/auto/quick/pointerhandlers/flickableinterop/data/tapOnList.qml +++ b/tests/auto/quick/pointerhandlers/flickableinterop/data/tapOnList.qml @@ -38,6 +38,15 @@ ListView { model: 10 spacing: 2 + // faster rebound to speed up test runs + rebound: Transition { + NumberAnimation { + properties: "x,y" + duration: 30 + easing.type: Easing.OutBounce + } + } + delegate: Rectangle { objectName: "itemview delegate" color: delegateTap.pressed ? "wheat" : "beige" diff --git a/tests/auto/quick/pointerhandlers/flickableinterop/data/tapOnTable.qml b/tests/auto/quick/pointerhandlers/flickableinterop/data/tapOnTable.qml index 6bf1054d7a..e1ff75410f 100644 --- a/tests/auto/quick/pointerhandlers/flickableinterop/data/tapOnTable.qml +++ b/tests/auto/quick/pointerhandlers/flickableinterop/data/tapOnTable.qml @@ -40,6 +40,15 @@ TableView { // TODO use TableModel when it's ready, to test with multiple columns model: 10 + // faster rebound to speed up test runs + rebound: Transition { + NumberAnimation { + properties: "x,y" + duration: 30 + easing.type: Easing.OutBounce + } + } + delegate: Rectangle { id: tableDelegate objectName: "itemview delegate" |