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

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

Commit message

Dash manage hint should not be visible in previews+test

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
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
1616. By Albert Astals Cid

line--

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, that added test fails without the changes in Dash.qml
 * Did CI run pass? If not, please explain why.
y
 * Did you make sure that the branch does not contain spurious tags?
y

review: Approve
1617. By Albert Astals Cid

Merge

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 2015-02-12 12:20:49 +0000
+++ qml/Dash/Dash.qml 2015-02-17 08:28:17 +0000
@@ -300,10 +300,11 @@
300 }300 }
301301
302 Image {302 Image {
303 objectName: "overviewHint"
303 source: "graphics/overview_hint.png"304 source: "graphics/overview_hint.png"
304 anchors.horizontalCenter: parent.horizontalCenter305 anchors.horizontalCenter: parent.horizontalCenter
305 opacity: !scopeItem.scope && (scopes.count == 0 || dashContent.pageHeaderTotallyVisible) &&306 opacity: !scopeItem.scope && (scopes.count == 0 || dashContent.pageHeaderTotallyVisible) &&
306 (overviewDragHandle.enabled || overviewDragHandle.status.progress != 0) ? 1 : 0307 (overviewDragHandle.enabled || bottomEdgeController.progress != 0) ? 1 : 0
307 Behavior on opacity {308 Behavior on opacity {
308 enabled: bottomEdgeController.progress == 0309 enabled: bottomEdgeController.progress == 0
309 UbuntuNumberAnimation {}310 UbuntuNumberAnimation {}
310311
=== modified file 'tests/qmltests/Dash/tst_Dash.qml'
--- tests/qmltests/Dash/tst_Dash.qml 2015-02-12 14:03:22 +0000
+++ tests/qmltests/Dash/tst_Dash.qml 2015-02-17 08:28:17 +0000
@@ -429,6 +429,28 @@
429 tryCompare(dashContentList, "currentIndex", 1)429 tryCompare(dashContentList, "currentIndex", 1)
430 }430 }
431431
432 function test_preview_no_show_manage_dash_hint() {
433 var dashContentList = findChild(dash, "dashContentList");
434 compare(dashContentList.currentIndex, 0);
435 compare(dashContentList.currentItem.scopeId, "MockScope1");
436
437 tryCompareFunction(function() {
438 var cardGrid = findChild(dashContentList, "dashCategory0");
439 if (cardGrid != null) {
440 var tile = findChild(cardGrid, "delegate0");
441 return tile != null;
442 }
443 return false;
444 },
445 true);
446 var tile = findChild(findChild(dashContentList, "dashCategory0"), "delegate0");
447 waitForRendering(tile);
448 mouseClick(tile);
449
450 var overviewHint = findChild(dash, "overviewHint");
451 tryCompare(overviewHint, "opacity", 0);
452 }
453
432 function test_close_temp_scope_preview_opening_scope() {454 function test_close_temp_scope_preview_opening_scope() {
433 // Show the manage dash455 // Show the manage dash
434 touchFlick(dash, dash.width / 2, dash.height - 1, dash.width / 2, units.gu(2));456 touchFlick(dash, dash.width / 2, dash.height - 1, dash.width / 2, units.gu(2));

Subscribers

People subscribed via source and target branches