summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-04-28 09:43:27 +0200
committerJędrzej Nowacki <jedrzej.nowacki@theqtcompany.com>2016-04-28 13:37:17 +0000
commit80d691afb1864f89778eb6846088887be56ba594 (patch)
treee2ac61ab8605dfdb5a2e5f7c1db0c78c70ff57bf
parentd1f118d8b6811b08d2057e110dc24d3292736dd6 (diff)
downloadqtquickcontrols-80d691afb1864f89778eb6846088887be56ba594.tar.gz
tst_extras: create animation as child of control
...and let it destruct together with the control. tst_extras::Tests_Common::test_resize(PieMenu) is constantly crashing in the Win 10 CI. This is a random shot attempting to solve the crash. We're not able to reproduce the issue locally or even when running the test manually on the CI. Change-Id: Iee717cdcf4b05273c05833856a9b5fd18443ca82 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
-rw-r--r--tests/auto/extras/data/tst_common.qml3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/extras/data/tst_common.qml b/tests/auto/extras/data/tst_common.qml
index 740743f8..d137c1a5 100644
--- a/tests/auto/extras/data/tst_common.qml
+++ b/tests/auto/extras/data/tst_common.qml
@@ -73,7 +73,7 @@ TestCase {
var qml = data.qml ? data.qml : "import QtQuick.Extras 1.4; " + data.tag + " { }";
control = Qt.createQmlObject(qml, testCase, "");
- var resizeAnimation = Qt.createQmlObject("import QtQuick 2.2; NumberAnimation {}", testCase, "");
+ var resizeAnimation = Qt.createQmlObject("import QtQuick 2.2; NumberAnimation {}", control, "");
resizeAnimation.target = control;
resizeAnimation.properties = "width,height";
resizeAnimation.duration = 100;
@@ -81,6 +81,5 @@ TestCase {
resizeAnimation.start();
// Shouldn't get any warnings.
tryCompare(resizeAnimation, "running", false);
- resizeAnimation.destroy();
}
}