on xenial help sign in
Implemented the click application launcher icon.
commit0725b0214291b1d33895bf74b5615a0fbeed6237 authorLeo Arias <leo.arias@canonical.com> dateMon 30 Jun 2014, 23:56 (12 years ago) parenta2c5ac9
3 files changed+5−1
qml/Launcher/LauncherDelegate.qml+1 qml/Launcher/LauncherPanel.qml+1 tests/autopilot/unity8/shell/emulators/launcher.py+3−1
qml/Launcher/LauncherDelegate.qml+1
@@ -20,6 +20,7 @@ import Ubuntu.Components 0.1
2020Item {
2121 id: root
2222
23+ property string appId
2324 property string iconName
2425 property int count: -1
2526 property int progress: -1
qml/Launcher/LauncherPanel.qml+1
@@ -149,6 +149,7 @@ Item {
149149 delegate: FoldingLauncherDelegate {
150150 id: launcherDelegate
151151 objectName: "launcherDelegate" + index
152+ appId: model.appId
152153 itemHeight: launcherListView.itemHeight
153154 itemWidth: launcherListView.itemWidth
154155 width: itemWidth
tests/autopilot/unity8/shell/emulators/launcher.py+3−1
@@ -76,4 +76,6 @@ class Launcher(emulators.UnityEmulatorBase):
7676
7777 @autopilot.logging.log_action(logger.debug)
7878 def click_application_launcher_icon(self, application_name):
79− import pdb; pdb.set_trace()
79+ launcher_delegate = self.select_single(
80+ 'LauncherDelegate', appId=application_name)
81+ self.pointing_device.click_object(launcher_delegate)