aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/propertyVar.circular.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qdeclarativeecmascript/data/propertyVar.circular.qml')
-rw-r--r--tests/auto/declarative/qdeclarativeecmascript/data/propertyVar.circular.qml44
1 files changed, 0 insertions, 44 deletions
diff --git a/tests/auto/declarative/qdeclarativeecmascript/data/propertyVar.circular.qml b/tests/auto/declarative/qdeclarativeecmascript/data/propertyVar.circular.qml
deleted file mode 100644
index 171d7747cd..0000000000
--- a/tests/auto/declarative/qdeclarativeecmascript/data/propertyVar.circular.qml
+++ /dev/null
@@ -1,44 +0,0 @@
-import QtQuick 2.0
-import Qt.test 1.0
-
-Item {
- id: testCircular
-
- property var varProperty
- property variant canaryResource
- property int canaryInt
-
- function constructGarbage() {
- var retn = 1;
- var component = Qt.createComponent("PropertyVarCircularComponent.qml");
- if (component.status == Component.Ready) {
- retn = component.createObject(null); // has JavaScript ownership
- }
- return retn;
- }
-
- function deassignCanaryResource() {
- canaryResource = 1;
- gc();
- }
-
- function assignCircular() {
- varProperty = constructGarbage();
- canaryResource = varProperty.vp.vp.vp.vp.memoryHog;
- canaryInt = varProperty.vp.vp.vp.vp.fifthCanary; // == 5
- gc();
- }
-
- function deassignCircular() {
- canaryInt = 2;
- varProperty = 2;
- gc();
- }
-
- function assignThenDeassign() {
- varProperty = constructGarbage();
- varProperty = 2;
- gc();
- }
-}
-