diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2012-05-25 09:45:24 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-25 11:32:45 +0200 |
commit | d00fbd043e53913bc64148f3207571d85f661a30 (patch) | |
tree | d3c95888c28544852027a765584cd2aef10749fe /tests/auto/qml/qqmlecmascript/data/propertyQJSValue.16.qml | |
parent | 70dee431e82aa4596aa993570120ab9afc7b608b (diff) |
Don't rewrite the body of function expressions
That is, don't look inside function expressions when rewriting
bindings as closures.
Task-number: QTBUG-25901
Change-Id: Ia4b99d3c58c4482e9505cf2461bd14942a9a00ca
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/data/propertyQJSValue.16.qml')
-rw-r--r-- | tests/auto/qml/qqmlecmascript/data/propertyQJSValue.16.qml | 22 |
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; + } +} |