Merge lp:~cimi/unity8/no-fullres-not-zoomable-images into lp:unity8

Proposed by Andrea Cimitan
Status: Merged
Approved by: Albert Astals Cid
Approved revision: 2138
Merged at revision: 2187
Proposed branch: lp:~cimi/unity8/no-fullres-not-zoomable-images
Merge into: lp:unity8
Diff against target: 47 lines (+9/-6)
2 files modified
qml/Components/ZoomableImage.qml (+1/-1)
tests/qmltests/Components/tst_ZoomableImage.qml (+8/-5)
To merge this branch: bzr merge lp:~cimi/unity8/no-fullres-not-zoomable-images
Reviewer Review Type Date Requested Status
Unity8 CI Bot continuous-integration Needs Fixing
Albert Astals Cid (community) Approve
PS Jenkins bot (community) continuous-integration Needs Fixing
Review via email: mp+283706@code.launchpad.net

Commit message

only request a bigger image if zoomable widget data property is true, otherwise just leave the screen size

Description of the change

 * Are there any related MPs required for this MP to build/function as expected? Please list.
n
 * Did you perform an exploratory manual test run of your code change and any related functionality?
y
 * Did you make sure that your branch does not contain spurious tags?
y
 * 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 :

FAILED: Continuous integration, rev:2138
https://unity8-jenkins.ubuntu.com/job/lp-unity8-1-ci/187/
Executed test runs:

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

review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2138
http://jenkins.qa.ubuntu.com/job/unity8-ci/7144/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/6170
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-xenial-touch/559/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1849
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity8-qmluitest-xenial-amd64/552
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1744
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1744
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-amd64-ci/551
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-i386-ci/550
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-touch/4760
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/6181
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/6181/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/26986
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-xenial-touch/290/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/557
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/557/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/26987

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/7144/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Albert Astals Cid (aacid) wrote :

 * Did you perform an exploratory manual test run of the code change and any related functionality?
Yes

 * Did CI run pass?
Kind of yes

 * Did you make sure that the branch does not contain spurious tags?
Yes

review: Approve
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

FAILED: Continuous integration, rev:2138
https://unity8-jenkins.ubuntu.com/job/lp-unity8-1-ci/243/
Executed test runs:

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

review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/Components/ZoomableImage.qml'
2--- qml/Components/ZoomableImage.qml 2015-07-15 15:07:19 +0000
3+++ qml/Components/ZoomableImage.qml 2016-01-22 23:43:05 +0000
4@@ -65,7 +65,7 @@
5 anchors.fill: parent
6 fillMode: Image.PreserveAspectFit
7
8- readonly property int sourceSizeMultiplier: 3
9+ readonly property int sourceSizeMultiplier: root.zoomable ? 3 : 1
10
11 sourceSize.width: root.width * sourceSizeMultiplier <= root.height * sourceSizeMultiplier ? root.width * sourceSizeMultiplier : 0
12 sourceSize.height: root.height * sourceSizeMultiplier <= root.width * sourceSizeMultiplier ? root.height * sourceSizeMultiplier : 0
13
14=== modified file 'tests/qmltests/Components/tst_ZoomableImage.qml'
15--- tests/qmltests/Components/tst_ZoomableImage.qml 2015-11-06 12:21:43 +0000
16+++ tests/qmltests/Components/tst_ZoomableImage.qml 2016-01-22 23:43:05 +0000
17@@ -73,7 +73,10 @@
18 tryCompareFunction(function() { return get_filename(imageRenderer.source.toString()) === get_filename(widgetData1["source"]); }, true);
19 waitForRendering(zoomableImage);
20 tryCompare(zoomableImage, "imageStatus", Image.Ready);
21- compare (signalSpy.count, 1);
22+ compare(signalSpy.count, 1);
23+ compare(imageRenderer.sourceSize.width, root.width);
24+ zoomableImage.zoomable = true;
25+ compare(imageRenderer.sourceSize.width, root.width*3);
26 }
27
28 function get_filename(a) {
29@@ -138,14 +141,14 @@
30 var imageRenderer = findChild(zoomableImage, "imageRenderer");
31 var flickable = findChild(zoomableImage, "flickable");
32
33+ zoomableImage.source = data.source;
34+ zoomableImage.zoomable = data.zoomable;
35+ waitForRendering(zoomableImage);
36+
37 signalSpy.signalName = "onScaleChanged";
38 signalSpy.target = image;
39 signalSpy.clear();
40
41- zoomableImage.source = data.source;
42- zoomableImage.zoomable = data.zoomable;
43- waitForRendering(zoomableImage);
44-
45 tryCompare(zoomableImage, "imageStatus", Image.Ready);
46 tryCompareFunction(function() { return get_filename(imageRenderer.source.toString()) === get_filename(data.source); }, true);
47 waitForRendering(image);

Subscribers

People subscribed via source and target branches