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
=== modified file 'qml/Dash/ScopesOverview.qml'
--- qml/Dash/ScopesOverview.qml 2014-08-27 15:36:18 +0000
+++ qml/Dash/ScopesOverview.qml 2014-08-28 15:51:43 +0000
@@ -386,6 +386,7 @@
386386
387 Rectangle {387 Rectangle {
388 id: bottomBar388 id: bottomBar
389 objectName: "bottomBar"
389 color: "black"390 color: "black"
390 height: units.gu(8)391 height: units.gu(8)
391 width: parent.width392 width: parent.width
@@ -400,6 +401,11 @@
400 }401 }
401 }402 }
402403
404 MouseArea {
405 // Just eat any other press since this parent is black opaque
406 anchors.fill: parent
407 }
408
403 AbstractButton {409 AbstractButton {
404 objectName: "scopesOverviewDoneButton"410 objectName: "scopesOverviewDoneButton"
405 width: Math.max(label.width + units.gu(2), units.gu(10))411 width: Math.max(label.width + units.gu(2), units.gu(10))
406412
=== modified file 'tests/qmltests/Dash/tst_Dash.qml'
--- tests/qmltests/Dash/tst_Dash.qml 2014-08-18 11:17:04 +0000
+++ tests/qmltests/Dash/tst_Dash.qml 2014-08-28 15:51:43 +0000
@@ -189,6 +189,14 @@
189 var scopesOverviewAllView = findChild(dash, "scopesOverviewRepeaterChild1");189 var scopesOverviewAllView = findChild(dash, "scopesOverviewRepeaterChild1");
190 tryCompare(scopesOverviewAllView, "enabled", true);190 tryCompare(scopesOverviewAllView, "enabled", true);
191191
192 // Click in the middle of the black bar (nothing happens)
193 var bottomBar = findChild(scopesOverview, "bottomBar");
194 mouseClick(bottomBar, bottomBar.width / 2, bottomBar.height / 2);
195 // Check temp scope is not there
196 var scopesOverviewTempScopeItem = findChild(dash, "scopesOverviewTempScopeItem");
197 expectFailContinue("", "Clicking in the middle of bottom bar should not open a temp scope");
198 tryCompareFunction( function() { return scopesOverviewTempScopeItem.scope != null; }, true);
199
192 // Click on a temp scope200 // Click on a temp scope
193 var tempScopeCard = findChild(scopesOverviewAllView, "delegate1");201 var tempScopeCard = findChild(scopesOverviewAllView, "delegate1");
194 mouseClick(tempScopeCard, 0, 0);202 mouseClick(tempScopeCard, 0, 0);
@@ -198,7 +206,6 @@
198 compare(overviewDragHandle.enabled, false);206 compare(overviewDragHandle.enabled, false);
199207
200 // Check temp scope is there208 // Check temp scope is there
201 var scopesOverviewTempScopeItem = findChild(dash, "scopesOverviewTempScopeItem");
202 tryCompareFunction( function() { return scopesOverviewTempScopeItem.scope != null; }, true);209 tryCompareFunction( function() { return scopesOverviewTempScopeItem.scope != null; }, true);
203 tryCompare(scopesOverviewTempScopeItem, "enabled", true);210 tryCompare(scopesOverviewTempScopeItem, "enabled", true);
204211

Subscribers

People subscribed via source and target branches