on xenial help sign in
Fix scope mapping test.
commit89f8c4d4e528f5bba37bd961b7daa38853c37abf authorMichał Sawicz <michal.sawicz@canonical.com> dateWed 27 Aug 2014, 09:09 (12 years ago) parent56847cf
1 file changed+6−2
tests/qmltests/Dash/tst_DashContent.qml+6−2
tests/qmltests/Dash/tst_DashContent.qml+6−2
@@ -200,8 +200,12 @@ Item {
200200 dashContent.setCurrentScopeAtIndex(data.index, true, false);
201201 tryCompareFunction(get_current_item_object_name, data.objectName)
202202 var scopeView = findChild(dashContent, data.objectName);
203− var pageHeader = findChild(scopeView, "innerPageHeader");
204− compare(pageHeader.title, scopesModel.getScope(data.index).name);
203+ verify(scopeView, "Could not find the scope view.");
204+ var pageHeader = findChild(scopeView, "scopePageHeader");
205+ verify(pageHeader, "Could not find the scope page header.");
206+ var innerHeader = findChild(pageHeader, "innerPageHeader");
207+ verify(innerHeader, "Could not find the scope page header.");
208+ compare(innerHeader.title, scopesModel.getScope(data.index).name);
205209 }
206210
207211 function test_is_active_data() {