diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-03-03 07:14:07 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-03-03 07:15:01 (GMT) |
commit | 4690084e9f3fbf3635aa3fb6a8025ae046672aea (patch) | |
tree | e691c0745411ae0075cd507bc14799cc30c68124 /tests/auto/declarative/qdeclarativeecmascript/data | |
parent | aebadf248a93458615a53b3480987f829aba0ee6 (diff) | |
download | Qt-4690084e9f3fbf3635aa3fb6a8025ae046672aea.zip Qt-4690084e9f3fbf3635aa3fb6a8025ae046672aea.tar.gz Qt-4690084e9f3fbf3635aa3fb6a8025ae046672aea.tar.bz2 |
Move JS global scope to top of the QML scope chain
QT-2787
Diffstat (limited to 'tests/auto/declarative/qdeclarativeecmascript/data')
-rw-r--r-- | tests/auto/declarative/qdeclarativeecmascript/data/scope.3.qml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeecmascript/data/scope.3.qml b/tests/auto/declarative/qdeclarativeecmascript/data/scope.3.qml new file mode 100644 index 0000000..4ad7f34 --- /dev/null +++ b/tests/auto/declarative/qdeclarativeecmascript/data/scope.3.qml @@ -0,0 +1,13 @@ +import Qt 4.6 + +Item { + id: root + + property int foo: 12 + property int console: 11 + + property bool test1: foo == 12 + property bool test2: console != 11 + property bool test3: root.console == 11 +} + |