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

Proposed by Albert Astals Cid
Status: Merged
Approved by: Andrea Cimitan
Approved revision: 1208
Merged at revision: 1242
Proposed branch: lp:~aacid/unity8/clickBlackStuffOverview
Merge into: lp:unity8
Diff against target: 49 lines (+14/-1)
2 files modified
qml/Dash/ScopesOverview.qml (+6/-0)
tests/qmltests/Dash/tst_Dash.qml (+8/-1)
To merge this branch: bzr merge lp:~aacid/unity8/clickBlackStuffOverview
Reviewer Review Type Date Requested Status
Andrea Cimitan (community) Approve
PS Jenkins bot (community) continuous-integration Needs Fixing
Review via email: mp+232431@code.launchpad.net

Commit message

Block mouse events under scope overview bottombar

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

To post a comment you must log in.
Revision history for this message
Andrea Cimitan (cimi) wrote :

we need a small test on that...

review: Needs Fixing
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
1207. By Albert Astals Cid

Merge

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
1208. By Albert Astals Cid

test++

Revision history for this message
Albert Astals Cid (aacid) wrote :

> we need a small test on that...

Added.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Andrea Cimitan (cimi) wrote :

* Did you perform an exploratory manual test run of the code change and any related functionality?
Yes
 * Did CI run pass? If not, please explain why.
Issue not on this

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/Dash/ScopesOverview.qml'
2--- qml/Dash/ScopesOverview.qml 2014-08-27 15:36:18 +0000
3+++ qml/Dash/ScopesOverview.qml 2014-08-28 15:51:43 +0000
4@@ -386,6 +386,7 @@
5
6 Rectangle {
7 id: bottomBar
8+ objectName: "bottomBar"
9 color: "black"
10 height: units.gu(8)
11 width: parent.width
12@@ -400,6 +401,11 @@
13 }
14 }
15
16+ MouseArea {
17+ // Just eat any other press since this parent is black opaque
18+ anchors.fill: parent
19+ }
20+
21 AbstractButton {
22 objectName: "scopesOverviewDoneButton"
23 width: Math.max(label.width + units.gu(2), units.gu(10))
24
25=== modified file 'tests/qmltests/Dash/tst_Dash.qml'
26--- tests/qmltests/Dash/tst_Dash.qml 2014-08-18 11:17:04 +0000
27+++ tests/qmltests/Dash/tst_Dash.qml 2014-08-28 15:51:43 +0000
28@@ -189,6 +189,14 @@
29 var scopesOverviewAllView = findChild(dash, "scopesOverviewRepeaterChild1");
30 tryCompare(scopesOverviewAllView, "enabled", true);
31
32+ // Click in the middle of the black bar (nothing happens)
33+ var bottomBar = findChild(scopesOverview, "bottomBar");
34+ mouseClick(bottomBar, bottomBar.width / 2, bottomBar.height / 2);
35+ // Check temp scope is not there
36+ var scopesOverviewTempScopeItem = findChild(dash, "scopesOverviewTempScopeItem");
37+ expectFailContinue("", "Clicking in the middle of bottom bar should not open a temp scope");
38+ tryCompareFunction( function() { return scopesOverviewTempScopeItem.scope != null; }, true);
39+
40 // Click on a temp scope
41 var tempScopeCard = findChild(scopesOverviewAllView, "delegate1");
42 mouseClick(tempScopeCard, 0, 0);
43@@ -198,7 +206,6 @@
44 compare(overviewDragHandle.enabled, false);
45
46 // Check temp scope is there
47- var scopesOverviewTempScopeItem = findChild(dash, "scopesOverviewTempScopeItem");
48 tryCompareFunction( function() { return scopesOverviewTempScopeItem.scope != null; }, true);
49 tryCompare(scopesOverviewTempScopeItem, "enabled", true);
50

Subscribers

People subscribed via source and target branches