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

Proposed by Albert Astals Cid
Status: Merged
Approved by: Andrea Cimitan
Approved revision: 2705
Merged at revision: 2734
Proposed branch: lp:~aacid/unity8/bring_back_fix_1517830
Merge into: lp:unity8
Diff against target: 98 lines (+64/-0)
2 files modified
qml/Dash/Previews/PreviewAudioPlayback.qml (+1/-0)
tests/qmltests/Dash/Previews/tst_Preview.qml (+63/-0)
To merge this branch: bzr merge lp:~aacid/unity8/bring_back_fix_1517830
Reviewer Review Type Date Requested Status
Andrea Cimitan (community) Approve
Unity8 CI Bot continuous-integration Approve
Review via email: mp+311832@code.launchpad.net

Commit message

Bring back fix for 1517830

Now with autotest \o/

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

 * 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
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:2705
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/2575/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/3389
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=vivid+overlay,testname=qmluitests.sh/1949
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/1949
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/1949
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/3417
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/3268
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/3268/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/3268
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/3268/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/3268
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/3268/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/3268
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/3268/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/3268
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/3268/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/3268
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/3268/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/3268
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/3268/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/3268
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/3268/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/3268
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/3268/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/2575/rebuild

review: Approve (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 tested on silo and devices
 * Did CI run pass? If not, please explain why.
yes

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/PreviewAudioPlayback.qml'
2--- qml/Dash/Previews/PreviewAudioPlayback.qml 2016-11-03 12:06:32 +0000
3+++ qml/Dash/Previews/PreviewAudioPlayback.qml 2016-11-25 14:48:30 +0000
4@@ -70,6 +70,7 @@
5 objectName: "playButton"
6 width: trackRow.column1Width
7 height: width
8+ activeFocusOnPress: false
9
10 onClicked: {
11 if (trackItem.isPlayingItem) {
12
13=== modified file 'tests/qmltests/Dash/Previews/tst_Preview.qml'
14--- tests/qmltests/Dash/Previews/tst_Preview.qml 2016-11-14 01:39:43 +0000
15+++ tests/qmltests/Dash/Previews/tst_Preview.qml 2016-11-25 14:48:30 +0000
16@@ -37,6 +37,51 @@
17 id: mockPreviewModel
18 }
19
20+ ListModel {
21+ id: tracksModel
22+ Component.onCompleted:
23+ {
24+ tracksModel.append( { "type" : "audio1",
25+ "widgetId" : "audiopw1",
26+ "properties" : { "tracks" : [
27+ { title: "Some track name", length: "30", source: "/not/existinga/path/testsound1" }
28+ ]
29+ }
30+ }
31+ );
32+ tracksModel.append(
33+ { "type" : "audio",
34+ "widgetId" : "audiopw",
35+ "properties" : { "tracks" : [
36+ { title: "Some track name", length: "30", source: "/not/existing/path/testsound1" },
37+ { title: "Some other track name", subtitle: "Subtitle", length: "83", source: "/not/existing/path/testsound2" },
38+ { title: "And another one", length: "7425", source: "/not/existing/path/testsound3" },
39+ { title: "And another one", length: "7425", source: "/not/existing/path/testsound4" },
40+ { title: "And another one", length: "7425", source: "/not/existing/path/testsound5" },
41+ { title: "And another one", length: "7425", source: "/not/existing/path/testsound6" },
42+ { title: "And another one", length: "7425", source: "/not/existing/path/testsound7" },
43+ { title: "And another one", length: "7425", source: "/not/existing/path/testsound8" },
44+ { title: "And another one", length: "7425", source: "/not/existing/path/testsound9" },
45+ { title: "And another one", length: "7425", source: "/not/existing/path/testsound10" },
46+ { title: "And another one", length: "7425", source: "/not/existing/path/testsound11" },
47+ { title: "And another one", length: "7425", source: "/not/existing/path/testsound12" },
48+ { title: "And another one", length: "7425", source: "/not/existing/path/testsound13" },
49+ { title: "And another one", length: "7425", source: "/not/existing/path/testsound14" },
50+ { title: "And another one", length: "7425", source: "/not/existing/path/testsound15" },
51+ { title: "And another one", length: "7425", source: "/not/existing/path/testsound16" },
52+ { title: "And another one", length: "7425", source: "/not/existing/path/testsound17" }
53+ ]
54+ }
55+ } );
56+ }
57+ }
58+
59+ QtObject {
60+ id: audiosModel
61+ property int widgetColumnCount: 1
62+ property var columnModel: { tracksModel }
63+ }
64+
65 Preview {
66 id: preview
67 anchors.fill: parent
68@@ -57,6 +102,7 @@
69 function init() {
70 var widget = findChild(preview, "previewListRow0");
71 widget.positionViewAtBeginning();
72+ preview.previewModel = mockPreviewModel;
73 }
74
75 function test_triggered() {
76@@ -147,5 +193,22 @@
77 skip("preview %1 or widget %2 have been destroyed, thus we can't safely continue this test".arg(preview_str).arg(widget_str))
78 }
79 }
80+
81+ function test_audios() {
82+ preview.previewModel = audiosModel;
83+ waitForRendering(preview);
84+
85+ // Scroll down
86+ var previewListRow0 = findChild(preview, "previewListRow0");
87+ flickToYEnd(previewListRow0);
88+
89+ var previewsContentY = previewListRow0.contentY;
90+
91+ var trackItem = findChild(preview, "trackItem16");
92+ mouseClick(findChild(trackItem, "playButton"));
93+
94+ expectFail("", "Clicking on a track should not change contentY.");
95+ tryCompareFunction(function () { return previewsContentY != previewListRow0.contentY; }, true);
96+ }
97 }
98 }

Subscribers

People subscribed via source and target branches