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

Proposed by Albert Astals Cid on 2015-06-23
Status: Merged
Approved by: Andrea Cimitan on 2015-07-21
Approved revision: 1834
Merged at revision: 1872
Proposed branch: lp:~aacid/unity8/expandable_not_expanded_by_default
Merge into: lp:unity8
Diff against target: 83 lines (+19/-16)
3 files modified
qml/Dash/Previews/PreviewWidgetFactory.qml (+1/-1)
tests/qmltests/Dash/Previews/tst_PreviewExpandable.qml (+3/-1)
tests/qmltests/Dash/Previews/tst_PreviewWidgetFactory.qml (+15/-14)
To merge this branch: bzr merge lp:~aacid/unity8/expandable_not_expanded_by_default
Reviewer Review Type Date Requested Status
Andrea Cimitan (community) 2015-06-23 Approve on 2015-07-21
PS Jenkins bot continuous-integration Needs Fixing on 2015-07-15
XiaoGuo, Liu 2015-06-23 Pending
Unity Team 2015-06-23 Pending
Review via email: mp+262719@code.launchpad.net

Commit Message

PreviewExpandable should be not expanded on startup

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

 * Did you have a look at the warnings when running tests? Can they be reduced?
N/A

To post a comment you must log in.
Albert Astals Cid (aacid) wrote :

XiaoGuo Liu can you check that with this changes it works as expected for you?

XiaoGuo, Liu (liu-xiao-guo) wrote :

Hi Albert,

I am sorry that I do not how can I get the release and do the testing. I'd
love to do that.

Thanks & best regards,
XiaoGuo

On Tue, Jun 23, 2015 at 10:31 PM, Albert Astals Cid <
<email address hidden>> wrote:

> XiaoGuo Liu can you check that with this changes it works as expected for
> you?
> --
>
> https://code.launchpad.net/~aacid/unity8/expandable_not_expanded_by_default/+merge/262719
> You are requested to review the proposed merge of
> lp:~aacid/unity8/expandable_not_expanded_by_default into lp:unity8.
>

--
XiaoGuo, Liu (刘晓国)
Mobile: +86-13911181302

Albert Astals Cid (aacid) wrote :

> Hi Albert,
>
> I am sorry that I do not how can I get the release and do the testing. I'd
> love to do that.

Either use the debian file provided in the previous comment at http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-wily-armhf/168/artifact/work/output/*zip*/output.zip or just edit the file PreviewWidgetFactory.qml on your phone manually.

XiaoGuo, Liu (liu-xiao-guo) wrote :

OK. thanks!

On Tue, Jun 30, 2015 at 4:54 PM, Albert Astals Cid <
<email address hidden>> wrote:

> > Hi Albert,
> >
> > I am sorry that I do not how can I get the release and do the testing.
> I'd
> > love to do that.
>
> Either use the debian file provided in the previous comment at
> http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-wily-armhf/168/artifact/work/output/*zip*/output.zip
> or just edit the file PreviewWidgetFactory.qml on your phone manually.
> --
>
> https://code.launchpad.net/~aacid/unity8/expandable_not_expanded_by_default/+merge/262719
> You are requested to review the proposed merge of
> lp:~aacid/unity8/expandable_not_expanded_by_default into lp:unity8.
>

--
XiaoGuo, Liu (刘晓国)
Mobile: +86-13911181302

Andrea Cimitan (cimi) wrote :

Shall we also test that is expanded for the others with a small test in previewwidgetfactory?

Albert Astals Cid (aacid) wrote :

> Shall we also test that is expanded for the others with a small test in
> previewwidgetfactory?

Done

Andrea Cimitan (cimi) wrote :

 * Did you perform an exploratory manual test run of the code change and any related functionality?
y
 * Did CI run pass? If not, please explain why.
ap
 * Did you make sure that the branch does not contain spurious tags?
y

review: Approve
Andrea Cimitan (cimi) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/Dash/Previews/PreviewWidgetFactory.qml'
2--- qml/Dash/Previews/PreviewWidgetFactory.qml 2015-07-01 15:48:29 +0000
3+++ qml/Dash/Previews/PreviewWidgetFactory.qml 2015-07-21 07:22:53 +0000
4@@ -35,7 +35,7 @@
5 property var scopeStyle: null
6
7 //! Should the widget show in expanded mode (For those that support it)
8- property bool expanded: true
9+ property bool expanded: widgetType !== "expandable"
10
11 //! Set to true if the parent preview is displayed.
12 property bool isCurrentPreview: false
13
14=== modified file 'tests/qmltests/Dash/Previews/tst_PreviewExpandable.qml'
15--- tests/qmltests/Dash/Previews/tst_PreviewExpandable.qml 2015-01-09 09:15:45 +0000
16+++ tests/qmltests/Dash/Previews/tst_PreviewExpandable.qml 2015-07-21 07:22:53 +0000
17@@ -51,9 +51,10 @@
18 widgetsModel.append({"type": "text", "widgetId": "text4", "properties": { "text": longText }});
19 }
20
21- PreviewExpandable {
22+ PreviewWidgetFactory {
23 id: previewExpandable
24 anchors { left: parent.left; right: parent.right }
25+ widgetType: "expandable"
26 widgetData: root.widgetData
27 }
28
29@@ -77,6 +78,7 @@
30 }
31
32 function init() {
33+ checkInitialState();
34 }
35
36 function test_collapsed_by_default() {
37
38=== modified file 'tests/qmltests/Dash/Previews/tst_PreviewWidgetFactory.qml'
39--- tests/qmltests/Dash/Previews/tst_PreviewWidgetFactory.qml 2015-07-01 15:48:29 +0000
40+++ tests/qmltests/Dash/Previews/tst_PreviewWidgetFactory.qml 2015-07-21 07:22:53 +0000
41@@ -75,20 +75,20 @@
42
43 function test_mapping_data() {
44 return [
45- { tag: "Actions", type: "actions", source: "PreviewActions.qml" },
46- { tag: "Audio", type: "audio", source: "PreviewAudioPlayback.qml" },
47- { tag: "Comment", type: "comment", source: "PreviewComment.qml" },
48- { tag: "Comment Input", type: "comment-input", source: "PreviewCommentInput.qml" },
49- { tag: "Expandable", type: "expandable", source: "PreviewExpandable.qml" },
50- { tag: "Gallery", type: "gallery", source: "PreviewImageGallery.qml" },
51- { tag: "Header", type: "header", source: "PreviewHeader.qml" },
52- { tag: "Image", type: "image", source: "PreviewZoomableImage.qml" },
53- { tag: "Progress", type: "progress", source: "PreviewProgress.qml" },
54- { tag: "Rating Input", type: "rating-input", source: "PreviewRatingInput.qml" },
55- { tag: "Rating Display", type: "reviews", source: "PreviewRatingDisplay.qml" },
56- { tag: "Table", type: "table", source: "PreviewTable.qml" },
57- { tag: "Text", type: "text", source: "PreviewTextSummary.qml" },
58- { tag: "Video", type: "video", source: "PreviewVideoPlayback.qml" },
59+ { tag: "Actions", type: "actions", source: "PreviewActions.qml", expanded: true },
60+ { tag: "Audio", type: "audio", source: "PreviewAudioPlayback.qml", expanded: true },
61+ { tag: "Comment", type: "comment", source: "PreviewComment.qml", expanded: true },
62+ { tag: "Comment Input", type: "comment-input", source: "PreviewCommentInput.qml", expanded: true },
63+ { tag: "Expandable", type: "expandable", source: "PreviewExpandable.qml", expanded: false },
64+ { tag: "Gallery", type: "gallery", source: "PreviewImageGallery.qml", expanded: true },
65+ { tag: "Header", type: "header", source: "PreviewHeader.qml", expanded: true },
66+ { tag: "Image", type: "image", source: "PreviewZoomableImage.qml", expanded: true },
67+ { tag: "Progress", type: "progress", source: "PreviewProgress.qml", expanded: true },
68+ { tag: "Rating Input", type: "rating-input", source: "PreviewRatingInput.qml", expanded: true },
69+ { tag: "Rating Display", type: "reviews", source: "PreviewRatingDisplay.qml", expanded: true },
70+ { tag: "Table", type: "table", source: "PreviewTable.qml", expanded: true },
71+ { tag: "Text", type: "text", source: "PreviewTextSummary.qml", expanded: true },
72+ { tag: "Video", type: "video", source: "PreviewVideoPlayback.qml", expanded: true },
73 ];
74 }
75
76@@ -97,6 +97,7 @@
77 factory.widgetType = data.type;
78
79 verify((String(factory.source)).indexOf(data.source) != -1);
80+ compare(factory.item.expanded, data.expanded);
81 }
82 }
83 }

Subscribers

People subscribed via source and target branches