diff -r ef0373b55136 -r 758a864f9613 tests/auto/declarative/qdeclarativeecmascript/data/nonscriptable.qml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/auto/declarative/qdeclarativeecmascript/data/nonscriptable.qml Mon Oct 04 01:19:32 2010 +0300 @@ -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; + } + } +}