summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlecmascript/data/scriptErrors.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qmlecmascript/data/scriptErrors.qml')
-rw-r--r--tests/auto/declarative/qmlecmascript/data/scriptErrors.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlecmascript/data/scriptErrors.qml b/tests/auto/declarative/qmlecmascript/data/scriptErrors.qml
new file mode 100644
index 0000000..3fb8ff7
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/scriptErrors.qml
@@ -0,0 +1,10 @@
+import Qt 4.6
+
+Object {
+ Script { source: "scriptErrors.js" }
+ Script { function getValue() { a = 10; return 0; } }
+
+ property int x: a.value
+ property int y: getValue();
+}
+