aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/qtbug_54589.qml
blob: 8f7d5f2a7069c269b1f4a6910e4be7e0b7fa905d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import QtQuick 2.0

QtObject {
    function checkPropertyDeletion() {
        var o = {
            x: 1,
            y: 2
        };
        o.z = 3
        delete o.y;

        return (o.x === 1 && o.y === undefined && o.z === 3)
    }

    property bool result: checkPropertyDeletion()
}