Use V4 binding for non-final properties where possible
[profile/ivi/qtdeclarative.git] / tests / auto / qml / qqmlecmascript / data / propertyVarOwnership.3.qml
1 import QtQuick 2.0
2
3 Item {
4     property var object
5
6     property bool test1: false
7     property bool test2: false
8
9     // Test methods are executed in sequential order
10
11     function runTest() {
12         var c = Qt.createComponent("propertyVarOwnership.3.type.qml");
13         object = c.createObject();
14
15         if (object.dummy != 10) return;
16         test1 = true;
17     }
18
19     // Run gc() from C++ 
20
21     function runTest2() {
22         if (object.dummy != 10) return;
23
24         object = undefined;
25         if (object != undefined) return;
26
27         test2 = true;
28     }
29
30     // Run gc() from C++ - QObject should be collected
31 }