summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/function.qml
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-06-23 02:45:34 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-06-23 02:45:34 (GMT)
commit3e209785c3f027973089ccbebc6528501f416f2b (patch)
tree52ff9053cabeb94266ab91932bfbf10897b070a5 /tests/auto/declarative/qdeclarativeecmascript/data/function.qml
parent27d59016d35ae84d89e8d09bdadb1c3a89ac3f22 (diff)
downloadQt-3e209785c3f027973089ccbebc6528501f416f2b.zip
Qt-3e209785c3f027973089ccbebc6528501f416f2b.tar.gz
Qt-3e209785c3f027973089ccbebc6528501f416f2b.tar.bz2
References to undefined variables throws a ReferenceError
This is consistent with normal JavaScript
Diffstat (limited to 'tests/auto/declarative/qdeclarativeecmascript/data/function.qml')
-rw-r--r--tests/auto/declarative/qdeclarativeecmascript/data/function.qml6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/auto/declarative/qdeclarativeecmascript/data/function.qml b/tests/auto/declarative/qdeclarativeecmascript/data/function.qml
index b435f58..80d6ef4 100644
--- a/tests/auto/declarative/qdeclarativeecmascript/data/function.qml
+++ b/tests/auto/declarative/qdeclarativeecmascript/data/function.qml
@@ -14,6 +14,10 @@ QtObject {
test1 = (func1(4) == 11);
test2 = (func2("Hello World!") == Qt.atob("Hello World!"));
- test3 = (func3() == undefined);
+ try {
+ func3();
+ } catch(e) {
+ test3 = true;
+ }
}
}