aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/data')
-rw-r--r--tests/auto/qml/qqmlecmascript/data/bindingLoopEagerEager.qml6
-rw-r--r--tests/auto/qml/qqmlecmascript/data/bindingLoopEagerLazy.qml13
-rw-r--r--tests/auto/qml/qqmlecmascript/data/bindingLoopEagerOld.qml6
-rw-r--r--tests/auto/qml/qqmlecmascript/data/bindingLoopLazyEager.qml6
-rw-r--r--tests/auto/qml/qqmlecmascript/data/bindingLoopLazyLazy.qml12
5 files changed, 43 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlecmascript/data/bindingLoopEagerEager.qml b/tests/auto/qml/qqmlecmascript/data/bindingLoopEagerEager.qml
new file mode 100644
index 0000000000..a320ba56e6
--- /dev/null
+++ b/tests/auto/qml/qqmlecmascript/data/bindingLoopEagerEager.qml
@@ -0,0 +1,6 @@
+import test
+
+BindingLoop {
+ eager1: eager2+1
+ eager2: eager1+1
+}
diff --git a/tests/auto/qml/qqmlecmascript/data/bindingLoopEagerLazy.qml b/tests/auto/qml/qqmlecmascript/data/bindingLoopEagerLazy.qml
new file mode 100644
index 0000000000..aabd41e61c
--- /dev/null
+++ b/tests/auto/qml/qqmlecmascript/data/bindingLoopEagerLazy.qml
@@ -0,0 +1,13 @@
+import test
+import QtQml
+
+QtObject {
+ property BindingLoop a: BindingLoop {
+ value: b.eager1+1
+ }
+
+ property BindingLoop b: BindingLoop {
+ eager1: a.value+1
+ }
+}
+
diff --git a/tests/auto/qml/qqmlecmascript/data/bindingLoopEagerOld.qml b/tests/auto/qml/qqmlecmascript/data/bindingLoopEagerOld.qml
new file mode 100644
index 0000000000..88553ed4a7
--- /dev/null
+++ b/tests/auto/qml/qqmlecmascript/data/bindingLoopEagerOld.qml
@@ -0,0 +1,6 @@
+import test
+
+BindingLoop {
+ eager1: oldprop+1
+ oldprop: eager1+1
+}
diff --git a/tests/auto/qml/qqmlecmascript/data/bindingLoopLazyEager.qml b/tests/auto/qml/qqmlecmascript/data/bindingLoopLazyEager.qml
new file mode 100644
index 0000000000..98fef4cbda
--- /dev/null
+++ b/tests/auto/qml/qqmlecmascript/data/bindingLoopLazyEager.qml
@@ -0,0 +1,6 @@
+import test
+
+BindingLoop {
+ eager1: value+1
+ value: eager1+1
+}
diff --git a/tests/auto/qml/qqmlecmascript/data/bindingLoopLazyLazy.qml b/tests/auto/qml/qqmlecmascript/data/bindingLoopLazyLazy.qml
new file mode 100644
index 0000000000..c054282f93
--- /dev/null
+++ b/tests/auto/qml/qqmlecmascript/data/bindingLoopLazyLazy.qml
@@ -0,0 +1,12 @@
+import test
+import QtQml
+
+BindingLoop {
+ id: loop
+ value: value2 + 1
+ value2: value + 1
+
+ Component.onCompleted: {
+ let x = loop.value2 // if we do not read the value, we don't detect the loop...
+ }
+}