From 32115087589939225a4516ed15196a4f6632c13b Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Wed, 30 Nov 2011 16:27:01 +0100 Subject: 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 --- tests/auto/declarative/qdeclarativeecmascript/data/scriptErrors.qml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/auto/declarative/qdeclarativeecmascript/data') 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) -- cgit v1.2.3