summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/scriptScope.js
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-03-02 04:48:07 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-03-02 04:49:09 (GMT)
commit861a9f127e04aa135649ed64f268d72da6a35fd9 (patch)
treec6c2b547a2d7c3dfdd2d2d7508579225817a2585 /tests/auto/declarative/qdeclarativeecmascript/data/scriptScope.js
parent3507c6fbbb585ea3b7f6a13b16fa216aea4574ab (diff)
downloadQt-861a9f127e04aa135649ed64f268d72da6a35fd9.zip
Qt-861a9f127e04aa135649ed64f268d72da6a35fd9.tar.gz
Qt-861a9f127e04aa135649ed64f268d72da6a35fd9.tar.bz2
Add autotests for script block scoping.
Diffstat (limited to 'tests/auto/declarative/qdeclarativeecmascript/data/scriptScope.js')
-rw-r--r--tests/auto/declarative/qdeclarativeecmascript/data/scriptScope.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeecmascript/data/scriptScope.js b/tests/auto/declarative/qdeclarativeecmascript/data/scriptScope.js
new file mode 100644
index 0000000..5689930
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativeecmascript/data/scriptScope.js
@@ -0,0 +1,5 @@
+var aProp = "world";
+
+function f() {
+ result = aProp;
+}