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
1=== modified file 'qml/Dash/Dash.qml'
2--- qml/Dash/Dash.qml 2015-02-12 12:20:49 +0000
3+++ qml/Dash/Dash.qml 2015-02-17 08:28:17 +0000
4@@ -300,10 +300,11 @@
5 }
6
7 Image {
8+ objectName: "overviewHint"
9 source: "graphics/overview_hint.png"
10 anchors.horizontalCenter: parent.horizontalCenter
11 opacity: !scopeItem.scope && (scopes.count == 0 || dashContent.pageHeaderTotallyVisible) &&
12- (overviewDragHandle.enabled || overviewDragHandle.status.progress != 0) ? 1 : 0
13+ (overviewDragHandle.enabled || bottomEdgeController.progress != 0) ? 1 : 0
14 Behavior on opacity {
15 enabled: bottomEdgeController.progress == 0
16 UbuntuNumberAnimation {}
17
18=== modified file 'tests/qmltests/Dash/tst_Dash.qml'
19--- tests/qmltests/Dash/tst_Dash.qml 2015-02-12 14:03:22 +0000
20+++ tests/qmltests/Dash/tst_Dash.qml 2015-02-17 08:28:17 +0000
21@@ -429,6 +429,28 @@
22 tryCompare(dashContentList, "currentIndex", 1)
23 }
24
25+ function test_preview_no_show_manage_dash_hint() {
26+ var dashContentList = findChild(dash, "dashContentList");
27+ compare(dashContentList.currentIndex, 0);
28+ compare(dashContentList.currentItem.scopeId, "MockScope1");
29+
30+ tryCompareFunction(function() {
31+ var cardGrid = findChild(dashContentList, "dashCategory0");
32+ if (cardGrid != null) {
33+ var tile = findChild(cardGrid, "delegate0");
34+ return tile != null;
35+ }
36+ return false;
37+ },
38+ true);
39+ var tile = findChild(findChild(dashContentList, "dashCategory0"), "delegate0");
40+ waitForRendering(tile);
41+ mouseClick(tile);
42+
43+ var overviewHint = findChild(dash, "overviewHint");
44+ tryCompare(overviewHint, "opacity", 0);
45+ }
46+
47 function test_close_temp_scope_preview_opening_scope() {
48 // Show the manage dash
49 touchFlick(dash, dash.width / 2, dash.height - 1, dash.width / 2, units.gu(2));

Subscribers

People subscribed via source and target branches