Use V4 binding for non-final properties where possible
[profile/ivi/qtdeclarative.git] / tests / auto / qml / qqmlecmascript / data / propertyVarOwnership.qml
1 import QtQuick 2.0
2 import Qt.test 1.0
3
4 Item {
5     id: testOwnership
6     property bool test: false
7
8     property var varProperty
9
10     function runTest() {
11         if (varProperty != undefined) return;
12         varProperty = { a: 10, b: 11 }
13         if (varProperty.a != 10) return;
14
15         gc(); // Shouldn't collect
16
17         if (varProperty.a != 10) return;
18
19         test = true;
20     } 
21 }
22