Use V4 binding for non-final properties where possible
[profile/ivi/qtdeclarative.git] / tests / auto / qml / qqmlecmascript / data / propertyVarOwnership.2.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 int dummyProperty // Tests for non-interference of other properties
9     property var varProperty
10
11     function runTest() {
12         if (varProperty != undefined) return;
13         varProperty = { a: 10, b: 11 }
14         if (varProperty.a != 10) return;
15
16         gc(); // Shouldn't collect
17
18         if (varProperty.a != 10) return;
19
20         test = true;
21     } 
22 }
23
24