on xenial help sign in
fixed regresssion in test and added a test for it.
commit0f63ce996f3e8dfd344ac6b2d9835baea6cd7bf6 authorNick Dedekind <nick.dedekind@canonical.com> dateWed 15 Apr 2015, 11:50 (12 years ago) parent8f37452
1 file changed+17−2
tests/qmltests/tst_Shell.qml+17−2
tests/qmltests/tst_Shell.qml+17−2
@@ -1130,10 +1130,10 @@ Rectangle {
11301130 {
11311131 var buttonShowDashHome = findChild(launcher, "buttonShowDashHome");
11321132 var startPos = buttonShowDashHome.mapToItem(shell,
1133− buttonShowDashHome.width * 0.8,
1133+ buttonShowDashHome.width * 0.2,
11341134 buttonShowDashHome.height * 0.2);
11351135 var endPos = buttonShowDashHome.mapToItem(shell,
1136− buttonShowDashHome.width * 0.2,
1136+ buttonShowDashHome.width * 0.8,
11371137 buttonShowDashHome.height * 0.8);
11381138 touchFlick(shell, startPos.x, startPos.y, endPos.x, endPos.y);
11391139 }
@@ -1238,5 +1238,20 @@ Rectangle {
12381238 var stageLoader = findChild(shell, "applicationsDisplayLoader");
12391239 verify(String(stageLoader.source).indexOf(data.source) >= 0);
12401240 }
1241+
1242+ function test_launcherInverted_data() {
1243+ return [
1244+ {tag: "phone", formFactor: "phone"},
1245+ {tag: "tablet", formFactor: "tablet"},
1246+ {tag: "desktop", formFactor: "desktop"}
1247+ ];
1248+ }
1249+
1250+ function test_launcherInverted(data) {
1251+ loadShell(data.formFactor);
1252+
1253+ var launcher = findChild(shell, "launcher");
1254+ compare(launcher.inverted, data.formFactor !== "desktop");
1255+ }
12411256 }
12421257}