Use V4 binding for non-final properties where possible
[profile/ivi/qtdeclarative.git] / tests / auto / qml / qqmlecmascript / data / propertyQJSValue.12.qml
1 import QtQuick 2.0
2 import Qt.test 1.0
3
4 Item {
5     property bool test: false
6
7     MyQmlObject { id: nullOneObj; qjsvalue: null }
8     MyQmlObject { id: nullTwoObj; }
9     MyQmlObject { id: undefOneObj; qjsvalue: undefined }
10     MyQmlObject { id: undefTwoObj }
11
12     property alias nullOne: nullOneObj.qjsvalue
13     property alias nullTwo: nullTwoObj.qjsvalue
14     property alias undefOne: undefOneObj.qjsvalue
15     property alias undefTwo: undefTwoObj.qjsvalue
16
17     Component.onCompleted: {
18         nullTwo = null;
19         undefTwo = undefined;
20         if (nullOne != null) return;
21         if (nullOne != nullTwo) return;
22         if (undefOne != undefined) return;
23         if (undefOne != undefTwo) return;
24         test = true;
25     }
26 }