aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlcomponent/data/recursionContinuation.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmlcomponent/data/recursionContinuation.qml')
-rw-r--r--tests/auto/qml/qqmlcomponent/data/recursionContinuation.qml16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlcomponent/data/recursionContinuation.qml b/tests/auto/qml/qqmlcomponent/data/recursionContinuation.qml
new file mode 100644
index 0000000000..a10afd3ebe
--- /dev/null
+++ b/tests/auto/qml/qqmlcomponent/data/recursionContinuation.qml
@@ -0,0 +1,16 @@
+import QtQuick 2.0
+
+Item {
+ id: root
+
+ property bool success: false
+
+ Component.onCompleted: {
+ for (var i = 0; i < 10; ++i) {
+ Qt.createComponent("RecursiveComponent.qml").createObject(root)
+ }
+
+ var o = Qt.createComponent("TestComponent.qml").createObject(root)
+ root.success = (o != null)
+ }
+}