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

Item {
    property bool test: false
    property var nullOne: null
    property var nullTwo
    property var undefOne: undefined
    property var undefTwo

    Component.onCompleted: {
        nullTwo = null;
        undefTwo = undefined;
        if (nullOne != null) return;
        if (nullOne != nullTwo) return;
        if (undefOne != undefined) return;
        if (undefOne != undefTwo) return;
        test = true;
    }
}