diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-06 05:48:32 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-06 05:48:32 (GMT) |
commit | 3184fbcd858244b5cd171fd0ab32c3ff565e579e (patch) | |
tree | 51e0e98e67d375721737fa625995da9bcd8b759f /tests/auto/declarative/qmlecmascript/data | |
parent | 067b419199b369b6c81fa1ae387257aa87cab20c (diff) | |
download | Qt-3184fbcd858244b5cd171fd0ab32c3ff565e579e.zip Qt-3184fbcd858244b5cd171fd0ab32c3ff565e579e.tar.gz Qt-3184fbcd858244b5cd171fd0ab32c3ff565e579e.tar.bz2 |
Add tst_qmlecmascript::scriptAccess testcase
Diffstat (limited to 'tests/auto/declarative/qmlecmascript/data')
-rw-r--r-- | tests/auto/declarative/qmlecmascript/data/scriptAccess.js | 7 | ||||
-rw-r--r-- | tests/auto/declarative/qmlecmascript/data/scriptAccess.qml | 17 |
2 files changed, 24 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlecmascript/data/scriptAccess.js b/tests/auto/declarative/qmlecmascript/data/scriptAccess.js new file mode 100644 index 0000000..c00d285 --- /dev/null +++ b/tests/auto/declarative/qmlecmascript/data/scriptAccess.js @@ -0,0 +1,7 @@ +var extVariable = 19; + +function extMethod() +{ + return extVariable; +} + diff --git a/tests/auto/declarative/qmlecmascript/data/scriptAccess.qml b/tests/auto/declarative/qmlecmascript/data/scriptAccess.qml new file mode 100644 index 0000000..feb6d16 --- /dev/null +++ b/tests/auto/declarative/qmlecmascript/data/scriptAccess.qml @@ -0,0 +1,17 @@ +import Qt 4.6 + +Item { + Script { + function method() { + return 10; + } + } + + Script { + source: "scriptAccess.js" + } + + property int test1: method() + property int test2: extMethod() + property int test3: extVariable +} |