aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/propertyQJSValue.bindingreset.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/data/propertyQJSValue.bindingreset.qml')
-rw-r--r--tests/auto/qml/qqmlecmascript/data/propertyQJSValue.bindingreset.qml19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlecmascript/data/propertyQJSValue.bindingreset.qml b/tests/auto/qml/qqmlecmascript/data/propertyQJSValue.bindingreset.qml
new file mode 100644
index 0000000000..598bdd395d
--- /dev/null
+++ b/tests/auto/qml/qqmlecmascript/data/propertyQJSValue.bindingreset.qml
@@ -0,0 +1,19 @@
+import QtQuick 2.0
+import Qt.test 1.0
+
+MyQmlObject {
+ id: root
+ property bool test: false
+
+ property bool doReset: false
+ qjsvalueWithReset: if (doReset) return undefined; else return 9
+
+ Component.onCompleted: {
+ if (qjsvalueWithReset != 9) return;
+ doReset = true
+
+ if (qjsvalueWithReset != "Reset!") return;
+
+ test = true;
+ }
+}