diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-11-03 15:57:08 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-11-03 15:17:28 +0000 |
commit | 6470a54ed34523822c50ac846a17a9f76564cf58 (patch) | |
tree | 59e40b06902fcda0d3c66a0a7958e07a86a98a52 /tests | |
parent | 508e5bcb6c46707b0d00da9692b3e6388dc48d77 (diff) |
tst_scrollbar::test_overshoot(): use createTemporaryObject()
Change-Id: Ic98b332c5e30104c4a3c74a873caafa9065d6b5d
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/controls/data/tst_scrollbar.qml | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/auto/controls/data/tst_scrollbar.qml b/tests/auto/controls/data/tst_scrollbar.qml index 3e153ebb..b44627c3 100644 --- a/tests/auto/controls/data/tst_scrollbar.qml +++ b/tests/auto/controls/data/tst_scrollbar.qml @@ -704,7 +704,7 @@ TestCase { } function test_overshoot() { - var container = flickable.createObject(testCase) + var container = createTemporaryObject(flickable, testCase) verify(container) waitForRendering(container) @@ -733,8 +733,6 @@ TestCase { horizontal.position = 0.8 compare(horizontal.contentItem.x, horizontal.leftPadding + 0.8 * horizontal.availableWidth) compare(horizontal.contentItem.width, 0.2 * horizontal.availableWidth) - - container.destroy() } function test_flashing() { |