diff options
author | Liang Qi <liang.qi@qt.io> | 2016-09-16 08:56:48 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2016-09-16 08:56:48 +0200 |
commit | c2356328f88b044c8956fe7860c4c04fca4f2c30 (patch) | |
tree | 8c65f5c87903ce85a1ec9954a637de5e3bd1985d /tests/auto/controls/data/tst_layout.qml | |
parent | 5d4e7366718d3784063bdf64725a5371355f179a (diff) | |
parent | 59c6c0e0b1b5b46747595a58e11311b7393d7e70 (diff) | |
download | qtquickcontrols-c2356328f88b044c8956fe7860c4c04fca4f2c30.tar.gz |
Merge remote-tracking branch 'origin/5.6.2' into 5.6
Change-Id: I216e0df7ffff798827f4bea2c5cb8769eb37a053
Diffstat (limited to 'tests/auto/controls/data/tst_layout.qml')
-rw-r--r-- | tests/auto/controls/data/tst_layout.qml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_layout.qml b/tests/auto/controls/data/tst_layout.qml index fc62b8a4..da0b1dd9 100644 --- a/tests/auto/controls/data/tst_layout.qml +++ b/tests/auto/controls/data/tst_layout.qml @@ -53,5 +53,16 @@ TestCase { var object = Qt.createQmlObject('import QtQuick 2.2; import QtQuick.Layouts 1.0; QtObject { Layout.fillWidth: true }', testCase, ''); object.destroy() } + + function test_defaultPropertyAliasCrash() { + var containerUserComponent = Qt.createComponent("layout/ContainerUser.qml"); + compare(containerUserComponent.status, Component.Ready); + + var containerUser = containerUserComponent.createObject(testCase); + verify(containerUser); + + // Shouldn't crash. + containerUser.destroy(); + } } |