@@ -50,9 +50,6 @@ Item {
52 verify(cachedObject.model !== cachedObject2.model);
52 verify(cachedObject.model !== cachedObject2.model);
54− cachedObject.destroy();
55− cachedObject2.destroy();
58 function test_createSame() {
55 function test_createSame() {
@@ -71,53 +68,6 @@ Item {
73 verify(cachedObject.model === cachedObject2.model);
70 verify(cachedObject.model === cachedObject2.model);
75− cachedObject.destroy();
76− cachedObject2.destroy();
79− function test_destroyAllDeletesModel() {
80− var cachedObject = model.createObject(root,
82− "busName": "com.canonical.test1",
83− "menuObjectPath": "com/canonical/test1",
84− "actionsObjectPath": "com/canonical/test1/actions"
87− var cachedObject2 = model.createObject(root,
89− "busName": "com.canonical.test1",
90− "menuObjectPath": "com/canonical/test1",
91− "actionsObjectPath": "com/canonical/test1/actions"
94− var menuModel = cachedObject.model;
95− cachedObject.destroy();
96− cachedObject2.destroy();
97− tryCompareFunction(function() { return Indicators.UnityMenuModelCache.contains(menuModel) }, false);
100− function test_destroyPartialKeepsModel() {
101− var cachedObject = model.createObject(root,
103− "busName": "com.canonical.test1",
104− "menuObjectPath": "com/canonical/test1",
105− "actionsObjectPath": "com/canonical/test1/actions"
108− var cachedObject2 = model.createObject(root,
110− "busName": "com.canonical.test1",
111− "menuObjectPath": "com/canonical/test1",
112− "actionsObjectPath": "com/canonical/test1/actions"
115− var menuModel = cachedObject.model;
116− cachedObject.destroy();
118− compare(Indicators.UnityMenuModelCache.contains(menuModel), true);
120− cachedObject2.destroy();
123 // Tests that changing cached model data does not change the model path of others
73 // Tests that changing cached model data does not change the model path of others
@@ -141,9 +91,6 @@ Item {
141 compare(cachedObject2.model.menuObjectPath, "com/canonical/test1");
91 compare(cachedObject2.model.menuObjectPath, "com/canonical/test1");
143 verify(cachedObject.model !== cachedObject2.model);
93 verify(cachedObject.model !== cachedObject2.model);
145− cachedObject.destroy();
146− cachedObject2.destroy();