@@ -70,6 +70,8 @@ Item {
71 var dashHome = findChild(shell, "DashHome");
71 var dashHome = findChild(shell, "DashHome");
72 swipeUntilScopeViewIsReached(dashHome);
72 swipeUntilScopeViewIsReached(dashHome);
75 function killApps(apps) {
77 function killApps(apps) {
@@ -268,6 +270,19 @@ Item {
268 mouseClick(appIcon, appIcon.width / 2, appIcon.height / 2);
270 mouseClick(appIcon, appIcon.width / 2, appIcon.height / 2);
273+ function showIndicators() {
274+ var indicators = findChild(shell, "indicators");
276+ tryCompare(indicators, "fullyOpened", true);
279+ function hideIndicators() {
280+ var indicators = findChild(shell, "indicators");
281+ if (indicators.fullyOpened) {
271 function waitUntilApplicationWindowIsFullyVisible() {
286 function waitUntilApplicationWindowIsFullyVisible() {
272 var underlay = findChild(shell, "underlay");
287 var underlay = findChild(shell, "underlay");
273 tryCompare(underlay, "visible", false);
288 tryCompare(underlay, "visible", false);
@@ -360,5 +375,40 @@ Item {
360 tryCompareFunction(function() { return backgroundImage.source.toString().indexOf(data.expectedUrl) !== -1; }, true)
375 tryCompareFunction(function() { return backgroundImage.source.toString().indexOf(data.expectedUrl) !== -1; }, true)
361 tryCompare(backgroundImage, "status", Image.Ready)
376 tryCompare(backgroundImage, "status", Image.Ready)
379+ function test_DashShown_data() {
381+ {tag: "in focus", greeter: false, app: false, launcher: false, indicators: false, expectedShown: true},
382+ {tag: "under greeter", greeter: true, app: false, launcher: false, indicators: false, expectedShown: false},
383+ {tag: "under app", greeter: false, app: true, launcher: false, indicators: false, expectedShown: false},
384+ {tag: "under launcher", greeter: false, app: false, launcher: true, indicators: false, expectedShown: true},
385+ {tag: "under indicators", greeter: false, app: false, launcher: false, indicators: true, expectedShown: true},
389+ function test_DashShown(data) {
391+ // Swipe the greeter in
392+ var greeter = findChild(shell, "greeter");
393+ Powerd.displayPowerStateChange(Powerd.Off, 0);
394+ tryCompare(greeter, "showProgress", 1);
398+ dragLauncherIntoView();
399+ tapOnAppIconInLauncher();
402+ if (data.launcher) {
403+ dragLauncherIntoView();
406+ if (data.indicators) {
410+ var dash = findChild(shell, "dash");
411+ tryCompare(dash, "shown", data.expectedShown);