on xenial help sign in
Fix test expectations
8be3e43Albert Astals
tests/qmltests/Dash/tst_DashContent.qml+5−5
@@ -70,7 +70,7 @@ Item {
70 function loadScopes() {
70 function loadScopes() {
71 scopeLoadedSpy.clear();
71 scopeLoadedSpy.clear();
72 scopesModel.load();
72 scopesModel.load();
73− tryCompare(scopeLoadedSpy, "count", 10);
73+ tryCompare(scopeLoadedSpy, "count", 6);
74 }
74 }
75
75
76 function init() {
76 function init() {
@@ -114,7 +114,7 @@ Item {
114
114
115 loadScopes();
115 loadScopes();
116
116
117− compare(dashContentList.count, 10);
117+ compare(dashContentList.count, 6);
118 verify(dashContentList.currentIndex >= 0 && dashContentList.currentIndex < dashContentList.count);
118 verify(dashContentList.currentIndex >= 0 && dashContentList.currentIndex < dashContentList.count);
119 }
119 }
120
120
@@ -190,9 +190,9 @@ Item {
190 function test_scope_mapping_data() {
190 function test_scope_mapping_data() {
191 return [
191 return [
192 {tag: "index0", index: 0, objectName: "MockScope1"},
192 {tag: "index0", index: 0, objectName: "MockScope1"},
193− {tag: "index1", index: 1, objectName: "MockScope2"},
193+ {tag: "index1", index: 1, objectName: "clickscope"},
194− {tag: "index2", index: 2, objectName: "clickscope"},
194+ {tag: "index2", index: 2, objectName: "MockScope5"},
195− {tag: "index3", index: 3, objectName: "MockScope5"}
195+ {tag: "index3", index: 3, objectName: "SingleCategoryScope"}
196 ]
196 ]
197 }
197 }
198
198