summaryrefslogtreecommitdiff
path: root/tests/auto/extras
diff options
context:
space:
mode:
authorKarim Pinter <karim.pinter@theqtcompany.com>2015-10-15 15:39:05 +0000
committerKarim Pinter <karim.pinter@theqtcompany.com>2015-10-22 09:41:30 +0000
commit34767778f6409f414add562eaad0eac11d88149d (patch)
tree092e16a42ee60f845f35224cb6045b3495f9893a /tests/auto/extras
parentd7f141944aee1e9d5a264168ea2d1d917a1e24b8 (diff)
downloadqtquickcontrols-34767778f6409f414add562eaad0eac11d88149d.tar.gz
Adding animation interval for tumbler
Extending the Tumblers setCurrentIndexAt method with timeinterval, which is set to the animation so while it changes it can move slower then default. Task-number: QTBUG-48680 Change-Id: Ic8e76c604bad928ae7b11cfbea76c11d5d295f80 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'tests/auto/extras')
-rw-r--r--tests/auto/extras/data/tst_tumbler.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/extras/data/tst_tumbler.qml b/tests/auto/extras/data/tst_tumbler.qml
index 9f3ecc2f..c0c20532 100644
--- a/tests/auto/extras/data/tst_tumbler.qml
+++ b/tests/auto/extras/data/tst_tumbler.qml
@@ -150,6 +150,12 @@ Item {
tumbler.setCurrentIndexAt(0, 1);
tryCompare(tumbler.__viewAt(0), "offset", 4);
compare(tumbler.currentIndexAt(0), 1);
+
+ tumbler.setCurrentIndexAt(0, 0);
+ waitForRendering(tumbler);
+ tumbler.setCurrentIndexAt(0, tumbler.getColumn(0).model.count-1, 1000);
+ tryCompare(tumbler.__viewAt(0), "offset", 1);
+ compare(tumbler.currentIndexAt(0), tumbler.getColumn(0).model.count-1);
}
function test_visible() {