aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/controls/data/tst_drawer.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/controls/data/tst_drawer.qml')
-rw-r--r--tests/auto/controls/data/tst_drawer.qml7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/auto/controls/data/tst_drawer.qml b/tests/auto/controls/data/tst_drawer.qml
index 91e934c4..887db22d 100644
--- a/tests/auto/controls/data/tst_drawer.qml
+++ b/tests/auto/controls/data/tst_drawer.qml
@@ -56,12 +56,11 @@ TestCase {
}
function test_defaults() {
- var control = drawer.createObject(testCase)
+ var control = createTemporaryObject(drawer, testCase)
compare(control.edge, Qt.LeftEdge)
compare(control.position, 0.0)
compare(control.dragMargin, Qt.styleHints.startDragDistance)
compare(control.parent, ApplicationWindow.overlay)
- control.destroy()
}
Component {
@@ -79,7 +78,7 @@ TestCase {
function test_swipeVelocity() {
skip("QTBUG-52003");
- var control = rectDrawer.createObject(testCase)
+ var control = createTemporaryObject(rectDrawer, testCase)
verify(control.contentItem)
compare(control.edge, Qt.LeftEdge)
compare(control.position, 0.0)
@@ -95,7 +94,5 @@ TestCase {
tryCompare(control, "position", distance / control.contentItem.width)
mouseRelease(control, distance, 0, Qt.LeftButton)
tryCompare(control, "position", 1.0)
-
- control.destroy()
}
}