Merge lp:~mzanetti/unity8/hide-drawer-on-launcher-activate into lp:unity8

Proposed by Michael Zanetti
Status: Merged
Approved by: Albert Astals Cid
Approved revision: 2837
Merged at revision: 2854
Proposed branch: lp:~mzanetti/unity8/hide-drawer-on-launcher-activate
Merge into: lp:unity8
Diff against target: 40 lines (+20/-0)
2 files modified
qml/Launcher/Launcher.qml (+3/-0)
tests/qmltests/Launcher/tst_Drawer.qml (+17/-0)
To merge this branch: bzr merge lp:~mzanetti/unity8/hide-drawer-on-launcher-activate
Reviewer Review Type Date Requested Status
Unity8 CI Bot continuous-integration Approve
Albert Astals Cid (community) Approve
Review via email: mp+318203@code.launchpad.net

Commit message

close the drawer when something is launched from the launcher

Description of the change

 * Are there any related MPs required for this MP to build/function as expected? Please list.
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 :

FAILED: Continuous integration, rev:2837
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3200/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4202
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2479
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2479
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4230
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4065
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4065/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4065
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4065/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4065
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4065/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4065
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4065/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4065
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4065/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4065
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4065/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3200/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? If not, please explain why.
Unrelated failure, i've triggered a rebuild and will wait for it to be approved before top approving.

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

PASSED: Continuous integration, rev:2837
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3213/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4216
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2489
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2489
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4244
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4079
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4079/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4079
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4079/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4079
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4079/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4079
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4079/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4079
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4079/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4079
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4079/artifact/output/*zip*/output.zip

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

review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/Launcher/Launcher.qml'
2--- qml/Launcher/Launcher.qml 2017-02-16 13:46:11 +0000
3+++ qml/Launcher/Launcher.qml 2017-02-24 10:55:45 +0000
4@@ -114,6 +114,9 @@
5
6 function hide(flags) {
7 if ((flags & ignoreHideIfMouseOverLauncher) && Utils.Functions.itemUnderMouse(panel)) {
8+ if (state == "drawer") {
9+ switchToNextState("visibleTemporary");
10+ }
11 return;
12 }
13 switchToNextState("")
14
15=== modified file 'tests/qmltests/Launcher/tst_Drawer.qml'
16--- tests/qmltests/Launcher/tst_Drawer.qml 2017-01-16 11:12:00 +0000
17+++ tests/qmltests/Launcher/tst_Drawer.qml 2017-02-24 10:55:45 +0000
18@@ -311,5 +311,22 @@
19
20 compare(launcher.lastSelectedApplication, "calendar-app");
21 }
22+
23+ function test_focusAppFromLauncherWhileDrawerIsOpen() {
24+ // FIXME: Skipping this test because of a bug in Qt. Please enable
25+ // once https://codereview.qt-project.org/#/c/184942/ is accepted
26+ skip();
27+
28+ launcher.openDrawer(true);
29+ waitForRendering(launcher);
30+ waitUntilTransitionsEnd(launcher);
31+
32+ var appIcon = findChild(launcher, "launcherDelegate4")
33+
34+ mouseMove(launcher, units.gu(4), launcher.height / 2)
35+ mouseClick(appIcon, appIcon.width / 2, appIcon.height / 2);
36+
37+ tryCompare(launcher, "state", "visibleTemporary");
38+ }
39 }
40 }

Subscribers

People subscribed via source and target branches