summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/nonscriptable.qml
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-08-31 07:37:30 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-08-31 07:37:30 (GMT)
commiteb0307cac2f6c35094ffcf7de782881cb440cf2f (patch)
tree95dc6c5441111dda2987cd296fe2a65ed19ee4fd /tests/auto/declarative/qdeclarativeecmascript/data/nonscriptable.qml
parent6a40104d587211dc740232fed908e29f0b58e2d9 (diff)
downloadQt-eb0307cac2f6c35094ffcf7de782881cb440cf2f.zip
Qt-eb0307cac2f6c35094ffcf7de782881cb440cf2f.tar.gz
Qt-eb0307cac2f6c35094ffcf7de782881cb440cf2f.tar.bz2
Ignore non-scriptable properties in QML
QTBUG-13043
Diffstat (limited to 'tests/auto/declarative/qdeclarativeecmascript/data/nonscriptable.qml')
-rw-r--r--tests/auto/declarative/qdeclarativeecmascript/data/nonscriptable.qml19
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;
+ }
+ }
+}