diff options
author | Liang Qi <liang.qi@qt.io> | 2017-11-15 09:11:03 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2017-11-15 09:11:04 +0100 |
commit | 558b3d09e21fe1e0cc43d82fc76e3eea981d82d2 (patch) | |
tree | cb5ef85534ab3bb08ca03ba7e8c320a58b1642b7 /tests/auto/controls/data/tst_slider.qml | |
parent | 442843db6f5dce6b594448d43b380c9b884a7c91 (diff) | |
parent | a0559ea88be32e19e83b2131cb26e61e873dc817 (diff) |
Merge remote-tracking branch 'origin/5.9' into 5.10
Change-Id: Ide4b85626dd153b534c39a3afa2f3b9e732badf5
Diffstat (limited to 'tests/auto/controls/data/tst_slider.qml')
-rw-r--r-- | tests/auto/controls/data/tst_slider.qml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/controls/data/tst_slider.qml b/tests/auto/controls/data/tst_slider.qml index b70aeaab..a831e402 100644 --- a/tests/auto/controls/data/tst_slider.qml +++ b/tests/auto/controls/data/tst_slider.qml @@ -776,12 +776,14 @@ TestCase { return [ { tag: "0.0..1.0", from: 0.0, to: 1.0, values: [0.0, 0.2, 0.5, 1.0] }, { tag: "0..100", from: 0, to: 100, values: [0, 20, 50, 100] }, - { tag: "100..-100", from: 100, to: -100, values: [100, 60, 0, -100] } + { tag: "100..-100", from: 100, to: -100, values: [100, 60, 0, -100] }, + { tag: "-7..7", from: -7, to: 7, stepSize: 1.0, values: [-7.0, -4.0, 0.0, 7.0] }, + { tag: "-3..7", from: -3, to: 7, stepSize: 5.0, values: [-3.0, -3.0, 2.0, 7.0] }, ] } function test_valueAt(data) { - var control = createTemporaryObject(slider, testCase, {from: data.from, to: data.to}) + var control = createTemporaryObject(slider, testCase, {from: data.from, to: data.to, stepSize: data.stepSize}) verify(control) compare(control.valueAt(0.0), data.values[0]) |