Merge lp:~mzanetti/unity8/close-temp-scope-on-left-edge into lp:unity8

Proposed by Michael Zanetti
Status: Merged
Approved by: Andrea Cimitan
Approved revision: 1434
Merged at revision: 1463
Proposed branch: lp:~mzanetti/unity8/close-temp-scope-on-left-edge
Merge into: lp:unity8
Diff against target: 63 lines (+26/-2)
2 files modified
qml/Dash/Dash.qml (+10/-2)
tests/qmltests/Dash/tst_Dash.qml (+16/-0)
To merge this branch: bzr merge lp:~mzanetti/unity8/close-temp-scope-on-left-edge
Reviewer Review Type Date Requested Status
Andrea Cimitan (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+241555@code.launchpad.net

Commit message

close previews and temp scopes on left edge/BFB

Description of the change

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

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
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Andrea Cimitan (cimi) wrote :

It does what it says

 * 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.
it did!
 * Did you make sure that the branch does not contain spurious tags?
yes

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'qml/Dash/Dash.qml'
--- qml/Dash/Dash.qml 2014-11-04 12:52:02 +0000
+++ qml/Dash/Dash.qml 2014-11-12 14:37:41 +0000
@@ -31,9 +31,10 @@
31 DashCommunicatorService {31 DashCommunicatorService {
32 objectName: "dashCommunicatorService"32 objectName: "dashCommunicatorService"
33 onSetCurrentScopeRequested: {33 onSetCurrentScopeRequested: {
34 if (!isSwipe || !window.active || overviewController.progress != 0) {34 if (!isSwipe || !window.active || overviewController.progress != 0 || scopeItem.scope || dashContent.subPageShown) {
35 if (overviewController.progress != 0 && window.active) animate = false;35 if (overviewController.progress != 0 && window.active) animate = false;
36 dashContent.setCurrentScopeAtIndex(index, animate, isSwipe)36 dashContent.setCurrentScopeAtIndex(index, animate, isSwipe)
37 // Close dash overview and nested temp scopes in it
37 if (overviewController.progress != 0) {38 if (overviewController.progress != 0) {
38 if (window.active) {39 if (window.active) {
39 dashContentCache.scheduleUpdate();40 dashContentCache.scheduleUpdate();
@@ -42,6 +43,14 @@
42 overviewController.progress = 0;43 overviewController.progress = 0;
43 scopesOverview.closeTempScope();44 scopesOverview.closeTempScope();
44 }45 }
46 // Close normal temp scopes (e.g. App Store)
47 if (scopeItem.scope) {
48 scopeItem.backClicked();
49 }
50 // Close previews
51 if (dashContent.subPageShown) {
52 dashContent.closePreview();
53 }
45 }54 }
46 }55 }
47 }56 }
@@ -389,5 +398,4 @@
389 }398 }
390 }399 }
391 }400 }
392
393}401}
394402
=== modified file 'tests/qmltests/Dash/tst_Dash.qml'
--- tests/qmltests/Dash/tst_Dash.qml 2014-10-30 14:55:29 +0000
+++ tests/qmltests/Dash/tst_Dash.qml 2014-11-12 14:37:41 +0000
@@ -298,6 +298,22 @@
298 tryCompare(dashContentList, "currentIndex", 1)298 tryCompare(dashContentList, "currentIndex", 1)
299 }299 }
300300
301 function test_setCurrentScopeClosesPreview() {
302 var dashContent = findChild(dash, "dashContent");
303 waitForRendering(dash)
304
305 var delegate0 = findChild(dash, "delegate0");
306 mouseClick(delegate0, delegate0.width / 2, delegate0.height / 2);
307
308 tryCompare(dashContent, "subPageShown", true)
309 waitForRendering(dash);
310
311 var dashCommunicatorService = findInvisibleChild(dash, "dashCommunicatorService");
312 dashCommunicatorService.mockSetCurrentScope(0, true, false);
313
314 tryCompare(dashContent, "subPageShown", false)
315 }
316
301 function test_processing_indicator() {317 function test_processing_indicator() {
302 var processingIndicator = findChild(dash, "processingIndicator");318 var processingIndicator = findChild(dash, "processingIndicator");
303 verify(processingIndicator, "Can't find the processing indicator.");319 verify(processingIndicator, "Can't find the processing indicator.");

Subscribers

People subscribed via source and target branches