diff options
Diffstat (limited to 'tests/auto/declarative/qmlecmascript/data/deletedObject.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; + } +} |