summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlecmascript/data
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-11-11 23:54:59 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-11-11 23:54:59 (GMT)
commit49cc2d35d7da4a78d696503930720e88a6403722 (patch)
tree866c8158e2784860f49dc7af78f3559971daeb4c /tests/auto/declarative/qmlecmascript/data
parent1795d7b20eccf20de84c9a688841d818b6a82c08 (diff)
downloadQt-49cc2d35d7da4a78d696503930720e88a6403722.zip
Qt-49cc2d35d7da4a78d696503930720e88a6403722.tar.gz
Qt-49cc2d35d7da4a78d696503930720e88a6403722.tar.bz2
Output error when a binding returns undefined
Diffstat (limited to 'tests/auto/declarative/qmlecmascript/data')
-rw-r--r--tests/auto/declarative/qmlecmascript/data/scriptErrors.qml7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/auto/declarative/qmlecmascript/data/scriptErrors.qml b/tests/auto/declarative/qmlecmascript/data/scriptErrors.qml
index d39b312..ff22990 100644
--- a/tests/auto/declarative/qmlecmascript/data/scriptErrors.qml
+++ b/tests/auto/declarative/qmlecmascript/data/scriptErrors.qml
@@ -4,9 +4,12 @@ MyQmlObject {
Script { source: "scriptErrors.js" }
Script { function getValue() { a = 10; return 0; } }
- property int x: a.value
- property int y: getValue();
+ property int t: a.value
+ property int w: getValue();
+ property int x: undefinedObject
+ property int y: (a.value, undefinedObject)
onBasicSignal: { print(a.value); }
+
}