summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/include.qml
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-05-14 03:45:08 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-05-14 03:45:08 (GMT)
commit645b9ee9dd6e0576542cc61872ecedb408ca8a89 (patch)
tree84e0a434aa94b3b610e665a47d31b5028eead166 /tests/auto/declarative/qdeclarativeecmascript/data/include.qml
parentffdb6fcca3bf8f4cc97f8bfe09a43811c29a7dbe (diff)
downloadQt-645b9ee9dd6e0576542cc61872ecedb408ca8a89.zip
Qt-645b9ee9dd6e0576542cc61872ecedb408ca8a89.tar.gz
Qt-645b9ee9dd6e0576542cc61872ecedb408ca8a89.tar.bz2
Add Qt.include() method for scoped inclusion of JavaScript files
Diffstat (limited to 'tests/auto/declarative/qdeclarativeecmascript/data/include.qml')
-rw-r--r--tests/auto/declarative/qdeclarativeecmascript/data/include.qml23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeecmascript/data/include.qml b/tests/auto/declarative/qdeclarativeecmascript/data/include.qml
new file mode 100644
index 0000000..18543b2
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativeecmascript/data/include.qml
@@ -0,0 +1,23 @@
+import Qt 4.7
+import "include.js" as IncludeTest
+
+QtObject {
+ property int test0: 0
+ property bool test1: false
+ property bool test2: false
+ property bool test2_1: false
+ property bool test3: false
+ property bool test3_1: false
+
+ property int testValue: 99
+
+ Component.onCompleted: {
+ IncludeTest.go();
+ test0 = IncludeTest.value
+ test1 = IncludeTest.test1
+ test2 = IncludeTest.test2
+ test2_1 = IncludeTest.test2_1
+ test3 = IncludeTest.test3
+ test3_1 = IncludeTest.test3_1
+ }
+}