aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/propertyQJSValue.16.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/data/propertyQJSValue.16.qml')
-rw-r--r--tests/auto/qml/qqmlecmascript/data/propertyQJSValue.16.qml22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlecmascript/data/propertyQJSValue.16.qml b/tests/auto/qml/qqmlecmascript/data/propertyQJSValue.16.qml
new file mode 100644
index 0000000000..7c691435ea
--- /dev/null
+++ b/tests/auto/qml/qqmlecmascript/data/propertyQJSValue.16.qml
@@ -0,0 +1,22 @@
+import QtQuick 2.0
+import Qt.test 1.0
+
+MyQmlObject {
+ property bool test: false
+ property string string1
+
+ qjsvalue: function () {
+ string1 = "Test case 1"
+ return 100;
+ }
+
+ Component.onCompleted: {
+ if (qjsvalue() != 100)
+ return
+
+ if (string1 != "Test case 1")
+ return;
+
+ test = true;
+ }
+}