~unity-team/unity8/launcher-sizing

« back to all changes in this revision

Viewing changes to tests/qmltests/Launcher/tst_Launcher.qml

  • Committer: Michael Zanetti
  • Date: 2016-01-14 15:44:57 UTC
  • Revision ID: michael.zanetti@canonical.com-20160114154457-10jva2bonusb64sb
fix hiding after merging a fix from the prereq

Show diffs side-by-side

added added

removed removed

Lines of Context:
1201
1201
            }
1202
1202
        }
1203
1203
 
1204
 
        function test_cancelKbdNavigationWitMouse() {
 
1204
        function test_cancelKbdNavigationWitMouse_data() {
 
1205
            return [
 
1206
                {tag: "locked out", autohide: false },
 
1207
                {tag: "autohide", autohide: true },
 
1208
            ]
 
1209
        }
 
1210
 
 
1211
        function test_cancelKbdNavigationWitMouse(data) {
1205
1212
            launcher.openForKeyboardNavigation();
1206
1213
            waitForRendering(launcher);
1207
1214
 
1219
1226
 
1220
1227
            mouseClick(root, root.width / 2, units.gu(2));
1221
1228
 
1222
 
            tryCompare(launcher, "state", "");
 
1229
            if (data.autohide) {
 
1230
                tryCompare(launcher, "state", "");
 
1231
            } else {
 
1232
                tryCompare(launcher, "state", "visible");
 
1233
            }
 
1234
 
1223
1235
            tryCompare(launcherPanel, "highlightIndex", -2);
1224
1236
        }
1225
1237
    }