on xenial help sign in
Add ;
b5b03cdAlbert Astals
tests/qmltests/Dash/tst_DashContent.qml+7−7
@@ -118,9 +118,9 @@ Item {
118
118
119 function test_show_header_on_list_movement() {
119 function test_show_header_on_list_movement() {
120 var dashContentList = findChild(dashContent, "dashContentList");
120 var dashContentList = findChild(dashContent, "dashContentList");
121− verify(dashContentList != undefined)
121+ verify(dashContentList != undefined);
122 var categoryListView = findChild(dashContentList, "categoryListView");
122 var categoryListView = findChild(dashContentList, "categoryListView");
123− verify(categoryListView != undefined)
123+ verify(categoryListView != undefined);
124
124
125 waitForRendering(categoryListView);
125 waitForRendering(categoryListView);
126
126
@@ -130,24 +130,24 @@ Item {
130 var startX = dashContentList.width/2;
130 var startX = dashContentList.width/2;
131 var startY = dashContentList.height/2;
131 var startY = dashContentList.height/2;
132 touchFlick(dashContentList, startX - units.gu(2), startY, startX, startY);
132 touchFlick(dashContentList, startX - units.gu(2), startY, startX, startY);
133− tryCompare(categoryListView, "contentY", units.gu(11) - categoryListView.pageHeader.height)
133+ tryCompare(categoryListView, "contentY", units.gu(11) - categoryListView.pageHeader.height);
134 }
134 }
135
135
136 function test_set_current_scope_reset() {
136 function test_set_current_scope_reset() {
137 var dashContentList = findChild(dashContent, "dashContentList");
137 var dashContentList = findChild(dashContent, "dashContentList");
138− verify(dashContentList != undefined)
138+ verify(dashContentList != undefined);
139 var categoryListView = findChild(dashContentList, "categoryListView");
139 var categoryListView = findChild(dashContentList, "categoryListView");
140− verify(categoryListView != undefined)
140+ verify(categoryListView != undefined);
141
141
142 categoryListView.contentY = units.gu(10);
142 categoryListView.contentY = units.gu(10);
143
143
144 compare(dashContentList.currentItem.item.objectName, "MockScope1")
144 compare(dashContentList.currentItem.item.objectName, "MockScope1")
145− compare(categoryListView.contentY, units.gu(10))
145+ compare(categoryListView.contentY, units.gu(10));
146
146
147 dashContent.setCurrentScopeAtIndex(0, false, true);
147 dashContent.setCurrentScopeAtIndex(0, false, true);
148
148
149 compare(dashContentList.currentItem.item.objectName, "MockScope1")
149 compare(dashContentList.currentItem.item.objectName, "MockScope1")
150− compare(categoryListView.contentY, 0)
150+ compare(categoryListView.contentY, 0);
151 }
151 }
152
152
153 // This tests that setting the current scope index will end up at the correct index even if
153 // This tests that setting the current scope index will end up at the correct index even if