aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/functionErrors.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/data/functionErrors.qml')
-rw-r--r--tests/auto/qml/qqmlecmascript/data/functionErrors.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlecmascript/data/functionErrors.qml b/tests/auto/qml/qqmlecmascript/data/functionErrors.qml
new file mode 100644
index 0000000000..230a626600
--- /dev/null
+++ b/tests/auto/qml/qqmlecmascript/data/functionErrors.qml
@@ -0,0 +1,10 @@
+import QtQuick 2.0
+
+QtObject {
+ function myFunction() {
+ a = 10;
+ }
+
+ Component.onCompleted: myFunction();
+}
+