aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2011-11-30 16:27:01 +0100
committerQt by Nokia <qt-info@nokia.com>2011-12-01 17:30:45 +0100
commit32115087589939225a4516ed15196a4f6632c13b (patch)
treea39a358228e434aa3c342c194f39f65b1d3f285e /tests/auto/declarative/qdeclarativeecmascript/data
parent362dfc3fcb6336dca53ac1717ac7957a359a4905 (diff)
Take multi-line expressions into account when rewriting expressions
Take into account the newlines expressions might have when combining multiple expressions into one. Change-Id: Ib7170f624b6b6dee522e2d376a513ac08a8baa46 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Diffstat (limited to 'tests/auto/declarative/qdeclarativeecmascript/data')
-rw-r--r--tests/auto/declarative/qdeclarativeecmascript/data/scriptErrors.qml3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeecmascript/data/scriptErrors.qml b/tests/auto/declarative/qdeclarativeecmascript/data/scriptErrors.qml
index f601f497ee..4998f63929 100644
--- a/tests/auto/declarative/qdeclarativeecmascript/data/scriptErrors.qml
+++ b/tests/auto/declarative/qdeclarativeecmascript/data/scriptErrors.qml
@@ -4,6 +4,9 @@ import "scriptErrors.js" as Script
MyQmlObject {
property int t: a.value
property int w: Script.getValue();
+ property int d: undefined
+ ? 0 // multi-line binding
+ : 1
property int x: undefined
property int y: (a.value, undefinedObject)