diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-02-10 08:03:00 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-02-10 08:03:00 (GMT) |
commit | 77b65788ab99b9f8e53d8b4149948a5012df110f (patch) | |
tree | 7207798c5699bfa47b9c506b5982f13bfac6f44d | |
parent | 9146d2f8783444985d0b9f43bb5bdc53e405f98c (diff) | |
parent | a9d0be15964278b032ab6fc974b514d8f741de48 (diff) | |
download | Qt-77b65788ab99b9f8e53d8b4149948a5012df110f.zip Qt-77b65788ab99b9f8e53d8b4149948a5012df110f.tar.gz Qt-77b65788ab99b9f8e53d8b4149948a5012df110f.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-qml
-rw-r--r-- | tests/auto/declarative/qmlecmascript/data/deletedObject.qml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlecmascript/data/deletedObject.qml b/tests/auto/declarative/qmlecmascript/data/deletedObject.qml new file mode 100644 index 0000000..6bc3a17 --- /dev/null +++ b/tests/auto/declarative/qmlecmascript/data/deletedObject.qml @@ -0,0 +1,25 @@ +import Qt 4.6 +import Qt.test 1.0 + +QtObject { + property var obj + obj: MyQmlObject { + id: myObject + value: 92 + } + + property bool test1: false + property bool test2: false + property bool test3: false + property bool test4: false + + Component.onCompleted: { + test1 = myObject.value == 92; + test2 = obj.value == 92; + + myObject.deleteOnSet = 1; + + test3 = myObject.value == undefined; + // test4 = obj.value == undefined; + } +} |