Merge lp:~aacid/unity8/fix_indicators_update_state into lp:unity8

Proposed by Albert Astals Cid on 2015-05-26
Status: Superseded
Proposed branch: lp:~aacid/unity8/fix_indicators_update_state
Merge into: lp:unity8
Diff against target: 56 lines (+9/-2)
4 files modified
qml/Panel/IndicatorsMenu.qml (+1/-1)
tests/autopilot/unity8/indicators/__init__.py (+1/-0)
tests/qmltests/CMakeLists.txt (+1/-1)
tests/qmltests/Panel/tst_IndicatorsMenu.qml (+6/-0)
To merge this branch: bzr merge lp:~aacid/unity8/fix_indicators_update_state
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing on 2015-05-26
Unity Team 2015-05-26 Pending
Review via email: mp+260104@code.launchpad.net

This proposal has been superseded by a proposal from 2015-05-27.

Commit Message

Update state of indicators bar only when the user is actively dragging himself

Fixes race with timer causing bug 1457044

Description of the Change

 * Are there any related MPs required for this MP to build/function as expected?
No

 * Did you perform an exploratory manual test run of your code change and any related functionality?
Yes

 * Did you make sure that your branch does not contain spurious tags?
Yes

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A

 * If you changed the UI, has there been a design review?
N/A

 * Did you have a look at the warnings when running tests? Can they be reduced?
Yes, not introducing any new warning

To post a comment you must log in.
1794. By Albert Astals Cid on 2015-05-26

Fix test

We need to make sure we are pressing the handle before fake changing the height of the indicatorsMenu

1795. By Albert Astals Cid on 2015-05-27

Merge oxide_regression_workaround

1796. By Albert Astals Cid on 2015-06-22

Merge unity8

1797. By Albert Astals Cid on 2015-07-03

Merge unit8

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/Panel/IndicatorsMenu.qml'
2--- qml/Panel/IndicatorsMenu.qml 2015-05-18 23:04:12 +0000
3+++ qml/Panel/IndicatorsMenu.qml 2015-05-27 13:37:16 +0000
4@@ -270,7 +270,7 @@
5 }
6
7 function updateState() {
8- if (!showAnimation.running && !hideAnimation.running) {
9+ if (!showAnimation.running && !hideAnimation.running && d.activeDragHandle) {
10 if (unitProgress <= 0) {
11 root.state = "initial";
12 // lock indicator if we've been committed and aren't moving too much laterally or too fast up.
13
14=== modified file 'tests/autopilot/unity8/indicators/__init__.py'
15--- tests/autopilot/unity8/indicators/__init__.py 2015-04-28 15:20:13 +0000
16+++ tests/autopilot/unity8/indicators/__init__.py 2015-05-27 13:37:16 +0000
17@@ -74,6 +74,7 @@
18 # XXX this should be implemented as a general horizontal swiping in
19 # the toolkit custom proxy object. -- elopio - 2015-01-20
20 if not flickable.atXEnd:
21+ flickable.interactive.wait_for(True)
22 while not flickable.atXEnd:
23 start_y = stop_y = (
24 flickable.globalRect.y +
25
26=== modified file 'tests/qmltests/CMakeLists.txt'
27--- tests/qmltests/CMakeLists.txt 2015-05-18 23:04:19 +0000
28+++ tests/qmltests/CMakeLists.txt 2015-05-27 13:37:16 +0000
29@@ -93,4 +93,4 @@
30 add_qml_test(Stages WindowMoveResizeArea)
31 add_qml_test(Stages Splash)
32 add_qml_test(Tutorial Tutorial)
33-add_qml_test(Wizard Wizard)
34+add_qml_test(Wizard Wizard ENVIRONMENT "OXIDE_NO_SANDBOX=1")
35
36=== modified file 'tests/qmltests/Panel/tst_IndicatorsMenu.qml'
37--- tests/qmltests/Panel/tst_IndicatorsMenu.qml 2014-11-25 12:53:03 +0000
38+++ tests/qmltests/Panel/tst_IndicatorsMenu.qml 2015-05-27 13:37:16 +0000
39@@ -147,11 +147,17 @@
40 }
41
42 function test_progress_changes_state_to_reveal() {
43+ var firstItem = get_indicator_item(0);
44+ var firstItemMappedPosition = indicatorsMenu.mapFromItem(firstItem, firstItem.width/2, firstItem.height/2);
45+ touchPress(indicatorsMenu, firstItemMappedPosition.x, indicatorsMenu.minimizedPanelHeight / 2);
46+
47 indicatorsMenu.height = indicatorsMenu.openedHeight / 2;
48 compare(indicatorsMenu.state, "reveal", "Indicators should be revealing when partially opened.");
49
50 indicatorsMenu.height = indicatorsMenu.openedHeight;
51 compare(indicatorsMenu.state, "reveal", "Indicators should still be revealing when fully opened.");
52+
53+ touchRelease(indicatorsMenu, firstItemMappedPosition.x, indicatorsMenu.minimizedPanelHeight / 2);
54 }
55
56 function test_open_state() {

Subscribers

People subscribed via source and target branches