diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2021-07-12 15:19:34 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2021-07-12 15:28:15 +0200 |
commit | 87b512cdf417e3e2898bbd5b808b5b837f93b7d5 (patch) | |
tree | f61c8ea92b32e1ee9fbc8f4a3ac7084256e92402 | |
parent | 4c99dc65bb45996b28c570d10ae9697cf400b156 (diff) |
Fix warning in RangeSlider::test_touchDragThreshold test
The warnings were:
TypeError: Cannot assign to read-only property "first"
TypeError: Cannot assign to read-only property "second"
Pick-to: 6.2
Change-Id: Ida6b0e4491f9ef867454b32c0ce1c4cd33dd841f
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
-rw-r--r-- | tests/auto/controls/data/tst_rangeslider.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/controls/data/tst_rangeslider.qml b/tests/auto/controls/data/tst_rangeslider.qml index 13687397..5e4d7150 100644 --- a/tests/auto/controls/data/tst_rangeslider.qml +++ b/tests/auto/controls/data/tst_rangeslider.qml @@ -982,7 +982,7 @@ TestCase { } function test_touchDragThreshold(data) { - var control = createTemporaryObject(sliderComponent, testCase, {touchDragThreshold: 10, live: true, orientation: data.orientation, first: {value: 0}, second: {value: 1}}) + var control = createTemporaryObject(sliderComponent, testCase, {touchDragThreshold: 10, live: true, orientation: data.orientation, "first.value": 0, "second.value": 1}) verify(control) compare(control.touchDragThreshold, 10) |