on xenial help sign in
Check the searchhint travels up correcly through the layers
8d34c63Albert Astals
tests/mocks/Unity/fake_scope.cpp+1−1
@@ -64,7 +64,7 @@ QString Scope::description() const
64
64
65QString Scope::searchHint() const
65QString Scope::searchHint() const
66{
66{
67− return QString("");
67+ return QString("Search %1").arg(m_name);
68}
68}
69
69
70QString Scope::shortcut() const
70QString Scope::shortcut() const
tests/qmltests/Dash/tst_DashContent.qml+12
@@ -380,5 +380,17 @@ Item {
380 mouseClick(allButton, 0, 0);
380 mouseClick(allButton, 0, 0);
381 tryCompare(dashDepartments.currentDepartment, "departmentId", "middle2");
381 tryCompare(dashDepartments.currentDepartment, "departmentId", "middle2");
382 }
382 }
383+
384+ function test_searchHint() {
385+ var dashContentList = findChild(dashContent, "dashContentList");
386+ verify(dashContentList !== null);
387+ var scope = findChild(dashContent, "MockScope1 loader");
388+ waitForRendering(scope);
389+
390+ var categoryListView = findChild(scope, "categoryListView");
391+ waitForRendering(categoryListView);
392+
393+ compare(categoryListView.pageHeader.searchHint, "Search People");
394+ }
383 }
395 }
384}
396}