Merge lp:~bzoltan/webbrowser-app/UCAbstractButton into lp:webbrowser-app

Proposed by Zoltan Balogh on 2015-09-08
Status: Merged
Approved by: Zoltan Balogh on 2015-09-08
Approved revision: 1175
Merged at revision: 1173
Proposed branch: lp:~bzoltan/webbrowser-app/UCAbstractButton
Merge into: lp:webbrowser-app
Diff against target: 29 lines (+3/-4)
1 file modified
tests/autopilot/webbrowser_app/emulators/browser.py (+3/-4)
To merge this branch: bzr merge lp:~bzoltan/webbrowser-app/UCAbstractButton
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve on 2015-09-08
Olivier Tilloy Approve on 2015-09-08
Christian Dywan 2015-09-08 Needs Fixing on 2015-09-08
Review via email: mp+270369@code.launchpad.net

Commit Message

Use right name for AbstractButton when 1.3 UITK is used.

Description of the Change

Use right name for AbstractButton when 1.3 UITK is used.

To post a comment you must log in.
Olivier Tilloy (osomon) wrote :

The browser app (and webapp container) already depend on the UITK >= 1.3, so I don’t think there is a need for a try…except clause, just updating the expected name to 'UCAbstractButton' should be enough, no?

Christian Dywan (kalikiana) wrote :

This can be much simpler. Use the objectName only and there's no need for try regardless of the UITK version used.

review: Needs Fixing
Zoltan Balogh (bzoltan) wrote :

Sadly no. I tried that and it made the Unity8 crash.

1173. By Zoltan Balogh on 2015-09-08

Use objectname only not the type

1174. By Zoltan Balogh on 2015-09-08

make flake8 happy

Olivier Tilloy (osomon) wrote :

That looks better (although I really wonder why specifying "UCAbstractButton" would make unity8 crash, and that should be investigated and understood before proceeding).

Please revert the removal of the blank line after the imports.

review: Needs Fixing
1175. By Zoltan Balogh on 2015-09-08

revert of the empty line removaö

Olivier Tilloy (osomon) wrote :

LGTM.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/autopilot/webbrowser_app/emulators/browser.py'
2--- tests/autopilot/webbrowser_app/emulators/browser.py 2015-09-03 09:46:29 +0000
3+++ tests/autopilot/webbrowser_app/emulators/browser.py 2015-09-08 10:15:23 +0000
4@@ -263,8 +263,7 @@
5
6 def get_drawer_action(self, actionName):
7 drawer = self.get_drawer()
8- return drawer.select_single("AbstractButton", objectName=actionName,
9- visible=True)
10+ return drawer.select_single(objectName=actionName, visible=True)
11
12 def get_tabs_bar(self):
13 return self.select_single(TabsBar)
14@@ -386,7 +385,7 @@
15
16 @autopilot.logging.log_action(logger.info)
17 def close(self):
18- button = self.select_single("AbstractButton", objectName="closeButton")
19+ button = self.select_single(objectName="closeButton")
20 self.pointing_device.click_object(button)
21
22
23@@ -449,7 +448,7 @@
24
25 @autopilot.logging.log_action(logger.info)
26 def click_back_button(self):
27- button = self.select_single("AbstractButton", objectName="backButton")
28+ button = self.select_single(objectName="backButton")
29 self.pointing_device.click_object(button)
30
31

Subscribers

People subscribed via source and target branches

to status/vote changes: