aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/controls/data/tst_stackview.qml
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2017-08-15 12:23:54 +0200
committerLiang Qi <liang.qi@qt.io>2017-08-15 13:31:44 +0200
commit9530cc3d4faeae92eba5ade6239a622630872560 (patch)
tree8c34541a430977c7a89bfd166029a3753387580e /tests/auto/controls/data/tst_stackview.qml
parent068379a66f88b34545530a018c0826c2c09a100a (diff)
parent63f2f55462f2f040cfe175ada8aa1e01168597fc (diff)
Merge remote-tracking branch 'origin/5.9' into dev
Conflicts: tests/auto/popup/tst_popup.cpp Change-Id: I32e6c6b646a00f8805cb82d181417db60a6fe6c8
Diffstat (limited to 'tests/auto/controls/data/tst_stackview.qml')
-rw-r--r--tests/auto/controls/data/tst_stackview.qml19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_stackview.qml b/tests/auto/controls/data/tst_stackview.qml
index 097180b8..f4b7fc4a 100644
--- a/tests/auto/controls/data/tst_stackview.qml
+++ b/tests/auto/controls/data/tst_stackview.qml
@@ -786,6 +786,19 @@ TestCase {
compare(control.busy, false)
}
+ function test_pushOnRemoved() {
+ var control = createTemporaryObject(stackView, testCase, { initialItem: component })
+ verify(control)
+
+ var item = control.push(component, StackView.Immediate)
+ verify(item)
+
+ item.StackView.onRemoved.connect(function() { control.push(component, StackView.Immediate) } )
+
+ // don't crash (QTBUG-62153)
+ control.pop(StackView.Immediate)
+ }
+
Component {
id: attachedItem
Item {
@@ -1170,6 +1183,12 @@ TestCase {
compare(item1.StackView.visible, true)
}
+ function test_resolveInitialItem() {
+ var control = createTemporaryObject(stackView, testCase, {initialItem: "TestItem.qml"})
+ verify(control)
+ verify(control.currentItem)
+ }
+
function test_resolve() {
var control = createTemporaryObject(stackView, testCase)
verify(control)