on xenial help sign in
Fix test to match new keeping-cached-model behavior
b670702Michael Terry
tests/qmltests/Panel/Indicators/tst_CachedUnityMenuModel.qml+2−2
@@ -122,10 +122,10 @@ Item {
122 return cachedObject2;
122 return cachedObject2;
123 }
123 }
124
124
125− function test_destroyAllDeletesModel() {
125+ function test_destroyAllKeepsModel() {
126 createAndDestroy("test6");
126 createAndDestroy("test6");
127 doGC();
127 doGC();
128− compare(Indicators.UnityMenuModelCache.contains("/com/canonical/test6"), false);
128+ compare(Indicators.UnityMenuModelCache.contains("/com/canonical/test6"), true);
129 }
129 }
130
130
131 function test_destroyPartialKeepsModel() {
131 function test_destroyPartialKeepsModel() {