aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/controls/data/tst_stackview.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/controls/data/tst_stackview.qml')
-rw-r--r--tests/auto/controls/data/tst_stackview.qml13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_stackview.qml b/tests/auto/controls/data/tst_stackview.qml
index 23eaf317..1cd12af3 100644
--- a/tests/auto/controls/data/tst_stackview.qml
+++ b/tests/auto/controls/data/tst_stackview.qml
@@ -744,4 +744,17 @@ TestCase {
control.destroy()
}
+
+ function test_failures() {
+ var control = stackView.createObject(testCase, {initialItem: component})
+ verify(control)
+
+ ignoreWarning("QQmlComponent: Component is not ready")
+ control.push("non-existent.qml")
+ ignoreWarning("QQmlComponent: Component is not ready")
+ control.replace("non-existent.qml")
+ control.pop()
+
+ control.destroy()
+ }
}