diff options
Diffstat (limited to 'tests/auto/declarative/qdeclarativeecmascript/data/propertyVar.2.qml')
-rw-r--r-- | tests/auto/declarative/qdeclarativeecmascript/data/propertyVar.2.qml | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/auto/declarative/qdeclarativeecmascript/data/propertyVar.2.qml b/tests/auto/declarative/qdeclarativeecmascript/data/propertyVar.2.qml deleted file mode 100644 index 2ac4807ec5..0000000000 --- a/tests/auto/declarative/qdeclarativeecmascript/data/propertyVar.2.qml +++ /dev/null @@ -1,24 +0,0 @@ -import QtQuick 2.0 - -Item { - id: root - property bool test: false - - property var truck: new vehicle(8); - property int wheelCount: truck.wheels - - function vehicle(wheels) { - this.wheels = wheels; - } - - Component.onCompleted: { - if (wheelCount != 8) return; - - // not bindable, but wheelCount will update because truck itself changed. - truck = new vehicle(12); - - if (wheelCount != 12) return; - - test = true; - } -} |