Merge lp:~mzanetti/unity8/ubuntuanimations into lp:unity8

Proposed by Michael Zanetti
Status: Merged
Approved by: Albert Astals Cid
Approved revision: 2030
Merged at revision: 2048
Proposed branch: lp:~mzanetti/unity8/ubuntuanimations
Merge into: lp:unity8
Prerequisite: lp:~mzanetti/unity8/fix-apps-under-panel
Diff against target: 122 lines (+35/-26)
2 files modified
qml/Stages/DesktopStage.qml (+34/-26)
tests/qmltests/tst_Shell.qml (+1/-0)
To merge this branch: bzr merge lp:~mzanetti/unity8/ubuntuanimations
Reviewer Review Type Date Requested Status
Albert Astals Cid (community) Abstain
PS Jenkins bot (community) continuous-integration Needs Fixing
Lukáš Tinkl (community) Approve
Review via email: mp+276511@code.launchpad.net

This proposal supersedes a proposal from 2015-11-03.

Commit message

use UbuntuNumberAnimations instead of linear ones for window state transitions

Description of the change

 * Are there any related MPs required for this MP to build/function as expected? Please list.

see prereq

 * 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?

changed as peer design feedback

To post a comment you must log in.
Revision history for this message
Lukáš Tinkl (lukas-kde) wrote :

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

Yes

* Did CI run pass? If not, please explain why.

Still didn't run, tested locally

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

Yes

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2026
http://jenkins.qa.ubuntu.com/job/unity8-ci/6635/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/4991
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-xenial-touch/50/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1347
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-qmluitest-xenial-amd64/50
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1242
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1243
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-amd64-ci/49
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-i386-ci/49
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-mako/4009
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/4988
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/4988/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/24852
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-xenial-mako/34/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/50
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/50/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/24853

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

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

Note: was top approved already

Text conflict in qml/Panel/Panel.qml
Text conflict in qml/Stages/DesktopStage.qml
Text conflict in qml/Stages/WindowResizeArea.qml
Text conflict in tests/qmltests/Stages/tst_DesktopStage.qml
Text conflict in tests/qmltests/Stages/tst_WindowResizeArea.qml
Text conflict in tests/qmltests/tst_Shell.qml
6 conflicts encountered.

Maybe these conflicts are from the parent branch totally but better to remerge all the chain

review: Needs Fixing
lp:~mzanetti/unity8/ubuntuanimations updated
2027. By Michael Zanetti

merge prereq

2028. By Michael Zanetti

update after merging

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

I've restarted this MP to work around an issue triggering generic-deb-autopilot-vivid-touch on krillin hardware.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2028
http://jenkins.qa.ubuntu.com/job/unity8-ci/6687/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/5095
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-xenial-touch/102/console
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1399
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity8-qmluitest-xenial-amd64/102
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1294
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1295
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-amd64-ci/101
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-i386-ci/101
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-touch/4077
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5100
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5100/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/25024
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-xenial-touch/6/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/102
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/102/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/25025

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

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

FAILED: Continuous integration, rev:2027
http://jenkins.qa.ubuntu.com/job/unity8-ci/6689/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/5097
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-xenial-touch/104/console
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1401
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity8-qmluitest-xenial-amd64/104
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1296
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1297
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-amd64-ci/103
    FAILURE: http://jenkins.qa.ubuntu.com/job/unity8-xenial-i386-ci/103/console
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-touch/4079
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5102
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5102/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/25030
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-xenial-touch/8/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/104
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/104/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/25031

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

review: Needs Fixing (continuous-integration)
lp:~mzanetti/unity8/ubuntuanimations updated
2029. By Michael Zanetti

mrege prereq

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2029
http://jenkins.qa.ubuntu.com/job/unity8-ci/6701/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/5131
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-xenial-touch/116/console
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1413
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-qmluitest-xenial-amd64/116
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1308
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1309
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-amd64-ci/115
    FAILURE: http://jenkins.qa.ubuntu.com/job/unity8-xenial-i386-ci/115/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-touch/4109
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5145
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5145/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/25116
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-xenial-touch/18/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/116
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/116/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/25115

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

review: Needs Fixing (continuous-integration)
lp:~mzanetti/unity8/ubuntuanimations updated
2030. By Michael Zanetti

wait for animations to be finished before destroying the test

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2030
http://jenkins.qa.ubuntu.com/job/unity8-ci/6704/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/5138
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-xenial-touch/119/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1416
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-qmluitest-xenial-amd64/119
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1311
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1312
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-amd64-ci/118
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-i386-ci/118
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-touch/4115
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5152
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5152/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/25128
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-xenial-touch/20/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/119
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/119/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/25127

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

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

Merged and CI "passes" re-top approving.

review: Abstain

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/Stages/DesktopStage.qml'
2--- qml/Stages/DesktopStage.qml 2015-11-12 18:05:13 +0000
3+++ qml/Stages/DesktopStage.qml 2015-11-12 18:05:13 +0000
4@@ -223,10 +223,18 @@
5 height: units.gu(50)
6 focus: appId === priv.focusedAppId
7
8- property bool maximized: false
9- property bool maximizedLeft: false
10- property bool maximizedRight: false
11- property bool minimized: false
12+ QtObject {
13+ id: appDelegatePrivate
14+ property bool maximized: false
15+ property bool maximizedLeft: false
16+ property bool maximizedRight: false
17+ property bool minimized: false
18+ }
19+ readonly property alias maximized: appDelegatePrivate.maximized
20+ readonly property alias maximizedLeft: appDelegatePrivate.maximizedLeft
21+ readonly property alias maximizedRight: appDelegatePrivate.maximizedRight
22+ readonly property alias minimized: appDelegatePrivate.minimized
23+
24 readonly property string appId: model.appId
25 property bool animationsEnabled: true
26 property alias title: decoratedWindow.title
27@@ -260,38 +268,38 @@
28
29 function maximize(animated) {
30 animationsEnabled = (animated === undefined) || animated;
31- minimized = false;
32- maximized = true;
33- maximizedLeft = false;
34- maximizedRight = false;
35+ appDelegatePrivate.minimized = false;
36+ appDelegatePrivate.maximized = true;
37+ appDelegatePrivate.maximizedLeft = false;
38+ appDelegatePrivate.maximizedRight = false;
39 }
40 function maximizeLeft() {
41- minimized = false;
42- maximized = false;
43- maximizedLeft = true;
44- maximizedRight = false;
45+ appDelegatePrivate.minimized = false;
46+ appDelegatePrivate.maximized = false;
47+ appDelegatePrivate.maximizedLeft = true;
48+ appDelegatePrivate.maximizedRight = false;
49 }
50 function maximizeRight() {
51- minimized = false;
52- maximized = false;
53- maximizedLeft = false;
54- maximizedRight = true;
55+ appDelegatePrivate.minimized = false;
56+ appDelegatePrivate.maximized = false;
57+ appDelegatePrivate.maximizedLeft = false;
58+ appDelegatePrivate.maximizedRight = true;
59 }
60 function minimize(animated) {
61 animationsEnabled = (animated === undefined) || animated;
62- maximized = false;
63- minimized = true;
64+ appDelegatePrivate.maximized = false;
65+ appDelegatePrivate.minimized = true;
66 }
67 function restore(animated) {
68 animationsEnabled = (animated === undefined) || animated;
69- minimized = false;
70- maximized = false;
71- maximizedLeft = false;
72- maximizedRight = false;
73+ appDelegatePrivate.minimized = false;
74+ appDelegatePrivate.maximized = false;
75+ appDelegatePrivate.maximizedLeft = false;
76+ appDelegatePrivate.maximizedRight = false;
77 }
78 function restoreFromMinimized(animated) {
79 animationsEnabled = (animated === undefined) || animated;
80- minimized = false;
81+ appDelegatePrivate.minimized = false;
82 if (maximized)
83 maximize();
84 else if (maximizedLeft)
85@@ -347,14 +355,14 @@
86 to: "normal"
87 enabled: appDelegate.animationsEnabled
88 PropertyAction { target: appDelegate; properties: "visuallyMinimized,visuallyMaximized" }
89- PropertyAnimation { target: appDelegate; properties: "x,y,opacity,width,height,scale" }
90+ UbuntuNumberAnimation { target: appDelegate; properties: "x,y,opacity,width,height,scale"; duration: UbuntuAnimation.FastDuration }
91 },
92 Transition {
93 to: "maximized"
94 enabled: appDelegate.animationsEnabled
95 PropertyAction { target: appDelegate; property: "visuallyMinimized" }
96 SequentialAnimation {
97- PropertyAnimation { target: appDelegate; properties: "x,y,opacity,width,height,scale" }
98+ UbuntuNumberAnimation { target: appDelegate; properties: "x,y,opacity,width,height,scale"; duration: UbuntuAnimation.FastDuration }
99 PropertyAction { target: appDelegate; property: "visuallyMaximized" }
100 }
101 },
102@@ -363,7 +371,7 @@
103 enabled: appDelegate.animationsEnabled
104 PropertyAction { target: appDelegate; property: "visuallyMaximized" }
105 SequentialAnimation {
106- PropertyAnimation { target: appDelegate; properties: "x,y,opacity,width,height,scale" }
107+ UbuntuNumberAnimation { target: appDelegate; properties: "x,y,opacity,width,height,scale"; duration: UbuntuAnimation.FastDuration }
108 PropertyAction { target: appDelegate; property: "visuallyMinimized" }
109 ScriptAction {
110 script: {
111
112=== modified file 'tests/qmltests/tst_Shell.qml'
113--- tests/qmltests/tst_Shell.qml 2015-11-12 18:05:13 +0000
114+++ tests/qmltests/tst_Shell.qml 2015-11-12 18:05:13 +0000
115@@ -313,6 +313,7 @@
116 }
117
118 function cleanup() {
119+ waitForRendering(shell);
120 mouseEmulation.checked = true;
121 tryCompare(shell, "enabled", true); // make sure greeter didn't leave us in disabled state
122 tearDown();

Subscribers

People subscribed via source and target branches