Merge lp:~tpeeters/ubuntu-ui-toolkit/tabs-autoactive into lp:ubuntu-ui-toolkit
- tabs-autoactive
- Merge into trunk
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Zsombor Egri | ||||
Approved revision: | 758 | ||||
Merged at revision: | 808 | ||||
Proposed branch: | lp:~tpeeters/ubuntu-ui-toolkit/tabs-autoactive | ||||
Merge into: | lp:ubuntu-ui-toolkit | ||||
Diff against target: |
97 lines (+22/-15) 4 files modified
modules/Ubuntu/Components/MainView.qml (+4/-4) modules/Ubuntu/Components/TabBar.qml (+8/-1) tests/autopilot/ubuntuuitoolkit/emulators.py (+9/-9) tests/autopilot/ubuntuuitoolkit/tests/test_emulators.py (+1/-1) |
||||
To merge this branch: | bzr merge lp:~tpeeters/ubuntu-ui-toolkit/tabs-autoactive | ||||
Related bugs: |
|
||||
Related blueprints: |
Tabs 2.0
(High)
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot | continuous-integration | Approve | |
Tim Peeters | Approve | ||
Zsombor Egri | Approve | ||
Review via email: mp+185046@code.launchpad.net |
Commit message
Put tab bar in selection mode when apps are launched.
Description of the change
Put tab bar in selection mode when apps are launched.
PS Jenkins bot (ps-jenkins) wrote : | # |
Tim Peeters (tpeeters) wrote : | # |
come on, jenkins. you can do it!
Tim Peeters (tpeeters) wrote : | # |
thanks for reviewing :)
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:749
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
UNSTABLE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
UNSTABLE: http://
UNSTABLE: http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
UNSTABLE: http://
UNSTABLE: http://
Tim Peeters (tpeeters) wrote : | # |
tests need to be updated to detect whether the tabbar is active before touching to activate.
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:750
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
- 751. By Tim Peeters
-
merge trunk
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:751
http://
Executed test runs:
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 752. By Tim Peeters
-
merge trunk
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:752
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 753. By Tim Peeters
-
testing autopilot tests. not passing, but curious if they pass on jenkins
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:753
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 754. By Tim Peeters
-
debugging
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:754
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
- 755. By Tim Peeters
-
swap position of Header and Toolbar in MainView code so that the header goes on top of the Toolbar IMA
- 756. By Tim Peeters
-
clean
- 757. By Tim Peeters
-
remove debugging code'
- 758. By Tim Peeters
-
remove debugging code
Tim Peeters (tpeeters) wrote : | # |
Autopilot tests updated, and mouse-event-
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:758
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Preview Diff
1 | === modified file 'modules/Ubuntu/Components/MainView.qml' |
2 | --- modules/Ubuntu/Components/MainView.qml 2013-09-24 06:22:16 +0000 |
3 | +++ modules/Ubuntu/Components/MainView.qml 2013-10-25 10:37:15 +0000 |
4 | @@ -271,6 +271,10 @@ |
5 | } |
6 | } |
7 | |
8 | + Toolbar { |
9 | + id: toolbarItem |
10 | + } |
11 | + |
12 | /*! |
13 | The header of the MainView. Can be used to obtain the height of the header |
14 | in \l Page to determine the area for the \l Page to fill. |
15 | @@ -283,10 +287,6 @@ |
16 | id: headerItem |
17 | property real bottomY: headerItem.y + headerItem.height |
18 | } |
19 | - |
20 | - Toolbar { |
21 | - id: toolbarItem |
22 | - } |
23 | } |
24 | |
25 | /*! |
26 | |
27 | === modified file 'modules/Ubuntu/Components/TabBar.qml' |
28 | --- modules/Ubuntu/Components/TabBar.qml 2013-08-14 21:28:43 +0000 |
29 | +++ modules/Ubuntu/Components/TabBar.qml 2013-10-25 10:37:15 +0000 |
30 | @@ -43,7 +43,14 @@ |
31 | An inactive tab bar only displays the currently selected tab, |
32 | and an active tab bar can be interacted with to select a tab. |
33 | */ |
34 | - property bool selectionMode: alwaysSelectionMode |
35 | + property bool selectionMode: false |
36 | + |
37 | + /*! |
38 | + When all components are completed, enable selection mode |
39 | + */ |
40 | + Component.onCompleted: { |
41 | + tabBar.selectionMode = true; |
42 | + } |
43 | |
44 | /*! |
45 | Do not deactivate the tab bar after a specified idle time or when the user selects a new tab. |
46 | |
47 | === modified file 'tests/autopilot/ubuntuuitoolkit/emulators.py' |
48 | --- tests/autopilot/ubuntuuitoolkit/emulators.py 2013-10-18 09:37:13 +0000 |
49 | +++ tests/autopilot/ubuntuuitoolkit/emulators.py 2013-10-25 10:37:15 +0000 |
50 | @@ -205,8 +205,6 @@ |
51 | tab_bar = self.select_single(TabBar) |
52 | assert tab_bar is not None, _NO_TABS_ERROR |
53 | tab_bar.switch_to_next_tab() |
54 | - |
55 | - # Sleep while the animation finishes. |
56 | self._get_animating().wait_for(False) |
57 | |
58 | |
59 | @@ -262,16 +260,18 @@ |
60 | |
61 | def switch_to_next_tab(self): |
62 | """Open the next tab.""" |
63 | - # Click the tab bar to switch to selection mode. |
64 | - logger.debug('Click the tab bar to enable selection mode.') |
65 | - self.pointing_device.click_object(self) |
66 | - if not self.selectionMode: |
67 | - logger.debug('Selection mode not enabled, try again.') |
68 | - # in case someone stole the click, like the open toolbar |
69 | - self.pointing_device.click_object(self) |
70 | + self._activate_tab_bar() |
71 | logger.debug('Click the next tab bar button.') |
72 | self.pointing_device.click_object(self._get_next_tab_button()) |
73 | |
74 | + def _activate_tab_bar(self): |
75 | + if self.selectionMode: |
76 | + logger.debug('Already in selection mode.') |
77 | + else: |
78 | + # Click the tab bar to switch to selection mode. |
79 | + logger.debug('Click the tab bar to enable selection mode.') |
80 | + self.pointing_device.click_object(self) |
81 | + |
82 | def _get_next_tab_button(self): |
83 | current_index = self._get_selected_button_index() |
84 | next_index = (current_index + 1) % self._get_number_of_tab_buttons() |
85 | |
86 | === modified file 'tests/autopilot/ubuntuuitoolkit/tests/test_emulators.py' |
87 | --- tests/autopilot/ubuntuuitoolkit/tests/test_emulators.py 2013-10-18 14:41:53 +0000 |
88 | +++ tests/autopilot/ubuntuuitoolkit/tests/test_emulators.py 2013-10-25 10:37:15 +0000 |
89 | @@ -193,7 +193,7 @@ |
90 | import Ubuntu.Components.ListItems 0.1 as ListItem |
91 | |
92 | MainView { |
93 | - width: units.gu(48) |
94 | + width: units.gu(70) |
95 | height: units.gu(60) |
96 | |
97 | Tabs { |
FAILED: Continuous integration, rev:748 jenkins. qa.ubuntu. com/job/ ubuntu- ui-toolkit- ci/639/ jenkins. qa.ubuntu. com/job/ generic- mediumtests- saucy/3294 jenkins. qa.ubuntu. com/job/ generic- mediumtests- touch/834 jenkins. qa.ubuntu. com/job/ ubuntu- ui-toolkit- saucy-amd64- ci/496 jenkins. qa.ubuntu. com/job/ ubuntu- ui-toolkit- saucy-armhf- ci/496 jenkins. qa.ubuntu. com/job/ ubuntu- ui-toolkit- saucy-armhf- ci/496/ artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- saucy-i386/ 3300 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- saucy-i386/ 3300/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ generic- mediumtests- runner- saucy/2784 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- saucy-armhf/ 836 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- saucy-armhf/ 836/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ generic- mediumtests- runner- maguro/ 697 jenkins. qa.ubuntu. com/job/ generic- mediumtests- runner- mako/707
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins: 8080/job/ ubuntu- ui-toolkit- ci/639/ rebuild
http://