diff options
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/data/propertyQJSValue.4.qml')
-rw-r--r-- | tests/auto/qml/qqmlecmascript/data/propertyQJSValue.4.qml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlecmascript/data/propertyQJSValue.4.qml b/tests/auto/qml/qqmlecmascript/data/propertyQJSValue.4.qml new file mode 100644 index 0000000000..18691d1ea9 --- /dev/null +++ b/tests/auto/qml/qqmlecmascript/data/propertyQJSValue.4.qml @@ -0,0 +1,19 @@ +import QtQuick 2.0 +import Qt.test 1.0 + +MyQmlObject { + property bool test: false + + qjsvalue: [1, 2, 3, "four", "five"] + property int bound: qjsvalue[0] + + Component.onCompleted: { + if (bound != 1) return; + + qjsvalue[0] = 10 // bound should remain 1 + + if (bound != 1) return; + + test = true; + } +} |