diff options
author | David Boddie <dboddie@trolltech.com> | 2010-09-02 13:43:17 (GMT) |
---|---|---|
committer | David Boddie <dboddie@trolltech.com> | 2010-09-02 13:43:17 (GMT) |
commit | 2bb571fe49d05b06b13aedc4f7fb71cbb1c949be (patch) | |
tree | ac37be379829c9aa5e9853763cb7f7d1a22464b8 /tests/auto/declarative/qdeclarativeecmascript/data/nonscriptable.qml | |
parent | 0d54ade501443d8a3b0e756520f6c43e602f1283 (diff) | |
parent | 7aed1cf06ed7b50f060ebce7a5a041c752989307 (diff) | |
download | Qt-2bb571fe49d05b06b13aedc4f7fb71cbb1c949be.zip Qt-2bb571fe49d05b06b13aedc4f7fb71cbb1c949be.tar.gz Qt-2bb571fe49d05b06b13aedc4f7fb71cbb1c949be.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7
Diffstat (limited to 'tests/auto/declarative/qdeclarativeecmascript/data/nonscriptable.qml')
-rw-r--r-- | tests/auto/declarative/qdeclarativeecmascript/data/nonscriptable.qml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeecmascript/data/nonscriptable.qml b/tests/auto/declarative/qdeclarativeecmascript/data/nonscriptable.qml new file mode 100644 index 0000000..024d82e --- /dev/null +++ b/tests/auto/declarative/qdeclarativeecmascript/data/nonscriptable.qml @@ -0,0 +1,19 @@ +import Qt.test 1.0 +import Qt 4.7 + +MyQmlObject { + id: root + + property bool readOk: false; + property bool writeOk: false + + Component.onCompleted: { + readOk = (root.nonscriptable == undefined); + + try { + root.nonscriptable = 10 + } catch (e) { + writeOk = true; + } + } +} |