summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/scriptErrors.qml
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-04-19 07:08:13 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-04-19 07:08:13 (GMT)
commit4223acff70de3036c5b7d75bccaec0c540c23556 (patch)
tree3c93c5a22e49b0998725fce10553bae96f036212 /tests/auto/declarative/qdeclarativeecmascript/data/scriptErrors.qml
parentfae16b674b619b73037841a00577de5922a26595 (diff)
downloadQt-4223acff70de3036c5b7d75bccaec0c540c23556.zip
Qt-4223acff70de3036c5b7d75bccaec0c540c23556.tar.gz
Qt-4223acff70de3036c5b7d75bccaec0c540c23556.tar.bz2
Remove Script {} support
Diffstat (limited to 'tests/auto/declarative/qdeclarativeecmascript/data/scriptErrors.qml')
-rw-r--r--tests/auto/declarative/qdeclarativeecmascript/data/scriptErrors.qml6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/auto/declarative/qdeclarativeecmascript/data/scriptErrors.qml b/tests/auto/declarative/qdeclarativeecmascript/data/scriptErrors.qml
index c2edb41..e8f7b62 100644
--- a/tests/auto/declarative/qdeclarativeecmascript/data/scriptErrors.qml
+++ b/tests/auto/declarative/qdeclarativeecmascript/data/scriptErrors.qml
@@ -1,11 +1,9 @@
import Qt.test 1.0
+import "scriptErrors.js" as Script
MyQmlObject {
- Script { source: "scriptErrors.js" }
- Script { function getValue() { a = 10; return 0; } }
-
property int t: a.value
- property int w: getValue();
+ property int w: Script.getValue();
property int x: undefinedObject
property int y: (a.value, undefinedObject)