Merge lp:~elopio/ubuntu-ui-toolkit/tab_selection_timing into lp:ubuntu-ui-toolkit

Proposed by Leo Arias
Status: Merged
Approved by: Zsombor Egri
Approved revision: 970
Merged at revision: 1001
Proposed branch: lp:~elopio/ubuntu-ui-toolkit/tab_selection_timing
Merge into: lp:ubuntu-ui-toolkit
Diff against target: 13 lines (+3/-0)
1 file modified
tests/autopilot/ubuntuuitoolkit/emulators.py (+3/-0)
To merge this branch: bzr merge lp:~elopio/ubuntu-ui-toolkit/tab_selection_timing
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Tim Peeters Pending
Review via email: mp+210219@code.launchpad.net

Commit message

Improve the check of tab selection mode by moving to it first.

To post a comment you must log in.
Revision history for this message
Tim Peeters (tpeeters) wrote :

Code looks good. Can you run the UITK, apps and unity8 autopilot tests to ensure nothing breaks?

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Leo Arias (elopio) wrote :

Currently running ci@home on my mako. Will post the results when I wake up.

Revision history for this message
Leo Arias (elopio) wrote :

Results of ci@home: http://paste.ubuntu.com/7137015/

Failures:

ERROR: ubuntu_clock_app.tests.test_alarm.TestAlarm.test_toggle_alarm_status_must_enable_or_disable_alarm

Ran it 20 times afterwards, all of them passed. Unlikely to be affected by this branch, it might have been a weird glitch.

ERROR: dialer_app

The call button is not enabled.

FAIL: messaging_app

The send button is not enabled.

With those two, something must have go wrong with the way the kaleo's scripts install the image. I manually reflashed r254 and I can't reproduce those problems.

So I installed r250 and tests pass there. So this seems good to go. And the change is actually really small, it doesn't change any functionality, it just makes the trip to the tab bar more efficient.

Revision history for this message
Tim Peeters (tpeeters) wrote :

Only messaging-app failed for me: http://paste.ubuntu.com/7146603/
I don't know why

Revision history for this message
Tim Peeters (tpeeters) wrote :

on second try, the messaging-app tests fail again: http://paste.ubuntu.com/7146701/

Revision history for this message
Tim Peeters (tpeeters) wrote :

probably, because I had to do an apt-get update before I could install the autopilot tests, I was testing with mismatching versions of libs for messenger-app (or a broken version). Also, in image 256, messenger-app tests are broken. See https://bugs.launchpad.net/messaging-app/+bug/1296826

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/autopilot/ubuntuuitoolkit/emulators.py'
2--- tests/autopilot/ubuntuuitoolkit/emulators.py 2014-03-03 08:37:42 +0000
3+++ tests/autopilot/ubuntuuitoolkit/emulators.py 2014-03-18 15:24:41 +0000
4@@ -346,6 +346,9 @@
5 self.pointing_device.click_object(self._get_next_tab_button())
6
7 def _activate_tab_bar(self):
8+ # First move to the tab bar to avoid timing issues when we find it in
9+ # selection mode but it's deselected while we move to it.
10+ self.pointing_device.move_to_object(self)
11 if self.selectionMode:
12 logger.debug('Already in selection mode.')
13 else:

Subscribers

People subscribed via source and target branches

to status/vote changes: