Merge lp:~lukas-kde/unity8/unsnap-from-panel into lp:unity8

Proposed by Lukáš Tinkl
Status: Merged
Approved by: Michał Sawicz
Approved revision: 2851
Merged at revision: 2877
Proposed branch: lp:~lukas-kde/unity8/unsnap-from-panel
Merge into: lp:unity8
Prerequisite: lp:~lukas-kde/unity8/fix-window-buttons-touch
Diff against target: 194 lines (+104/-11)
3 files modified
qml/ApplicationMenus/MenuBar.qml (+5/-0)
qml/Panel/Panel.qml (+8/-2)
tests/qmltests/tst_Shell.qml (+91/-9)
To merge this branch: bzr merge lp:~lukas-kde/unity8/unsnap-from-panel
Reviewer Review Type Date Requested Status
Unity8 CI Bot continuous-integration Approve
Michał Sawicz Approve
Albert Astals Cid (community) Approve
Review via email: mp+319558@code.launchpad.net

Commit message

Fix unsnapping a maximized window from the panel

Description of the change

Fix unsnapping a maximized window from the panel

Load the menubar only if the call hint isn't active

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

Yes, prereq

* 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:2842
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3337/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4391
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2628
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2628
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4419
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4252
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4252/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4252
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4252/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4252
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4252/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4252
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4252/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4252
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4252/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4252
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4252/artifact/output/*zip*/output.zip

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

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

PASSED: Continuous integration, rev:2843
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3338/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4392
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2629
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2629
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4420
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4253
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4253/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4253
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4253/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4253
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4253/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4253
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4253/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4253
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4253/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4253
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4253/artifact/output/*zip*/output.zip

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

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

PASSED: Continuous integration, rev:2844
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3339/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4393
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2630
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2630
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4421
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4254
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4254/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4254
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4254/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4254
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4254/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4254
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4254/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4254
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4254/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4254
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4254/artifact/output/*zip*/output.zip

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

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

Two minor things in the tests:

+ mouseMove(panel, panel.width/2, panel.panelHeight/2, 200 /* delay */); // to reveal the menus

Maybe we can add a try compare here to actaully check the menu is shown here?

+ // start dialer, maximize it

You're not starting the dialer, s/dialer/app ?

review: Needs Fixing
Revision history for this message
Lukáš Tinkl (lukas-kde) wrote :

> Two minor things in the tests:
>
> + mouseMove(panel, panel.width/2, panel.panelHeight/2, 200 /* delay */); // to
> reveal the menus
> Maybe we can add a try compare here to actaully check the menu is shown here?

Done, removed the delay

> + // start dialer, maximize it
>
> You're not starting the dialer, s/dialer/app ?

Yup fixed. Originally it was dialer but then I realized dialer-app has some special treatment in shell, such as it wouldn't show the call hint in the panel.

Revision history for this message
Albert Astals Cid (aacid) wrote :

I can't open the menus anymore on maximized windows

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

FAILED: Continuous integration, rev:2845
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3340/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4394
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2631
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2631
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4422
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4255
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4255/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4255
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4255/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4255
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4255/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4255
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4255/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4255
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4255/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4255
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4255/artifact/output/*zip*/output.zip

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

review: Needs Fixing (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:2846
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3341/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4396
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2632
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2632
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4424
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4257
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4257/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4257
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4257/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4257
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4257/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4257
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4257/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4257
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4257/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4257
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4257/artifact/output/*zip*/output.zip

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

review: Approve (continuous-integration)
Revision history for this message
Lukáš Tinkl (lukas-kde) wrote :

> I can't open the menus anymore on maximized windows

Fixed \o/

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

FAILED: Continuous integration, rev:2848
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3357/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4423
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2651
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2651
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4451
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4284
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4284/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4284
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4284/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4284
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4284/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4284
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4284/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4284
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4284/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4284
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4284/artifact/output/*zip*/output.zip

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

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

Can you add a test for the thing that broke and you just fixed (i.e. showing menus while maximized)

review: Needs Fixing
Revision history for this message
Lukáš Tinkl (lukas-kde) wrote :

> Can you add a test for the thing that broke and you just fixed (i.e. showing
> menus while maximized)

Test added

Revision history for this message
Albert Astals Cid (aacid) wrote :
review: Needs Fixing
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

FAILED: Continuous integration, rev:2849
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3370/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4442
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2659
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2659
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4470
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4300
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4300/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4300
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4300/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4300
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4300/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4300
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4300/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4300
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4300/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4300
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4300/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3370/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, works good

 * Did CI run pass? If not, please explain why.
Let's wait before top approving

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

FAILED: Continuous integration, rev:2850
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3373/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4446
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2663
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2663
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4474
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4304
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4304/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4304
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4304/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4304
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4304/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4304
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4304/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4304
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4304/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4304
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4304/artifact/output/*zip*/output.zip

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

review: Needs Fixing (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

FAILED: Continuous integration, rev:2850
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3375/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4449
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2666
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2666
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4477
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4307
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4307/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4307
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4307/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4307
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4307/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4307
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4307/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4307
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4307/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4307
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4307/artifact/output/*zip*/output.zip

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

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

The newly added test failed on CI :/

review: Needs Fixing
Revision history for this message
Lukáš Tinkl (lukas-kde) wrote :

It's not the new one, just flaky run imo, will restart CI

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

PASSED: Continuous integration, rev:2850
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3388/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4466
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2681
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2681
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4494
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4321
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4321/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4321
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4321/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4321
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4321/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4321
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4321/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4321
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4321/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4321
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4321/artifact/output/*zip*/output.zip

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

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

Ok

review: Approve
Revision history for this message
Michał Sawicz (saviq) wrote :

The touch version of test_dragPanelToRestoreMaximizedWindow fails for me here 100% after having installled silo 2555 and lp:~ci-train-bot/unity8/unity8-ubuntu-zesty-2555:

$ sh ./builddir/tests/scripts/testShell.sh Shell::test_dragPanelToRestoreMaximizedWindow
[...]

QINFO : qmltestrunner::Shell::test_dragPanelToRestoreMaximizedWindow(with touch) toplevelwindowmodel: setFocusedWindow(Window[0x558eb3eaa7f0, id=1, MirSurface[0x558eb37ab290,"Unity 8 Mock Dashs window title"]])
FAIL! : qmltestrunner::Shell::test_dragPanelToRestoreMaximizedWindow(with touch) property state
   Actual (): maximized
   Expected (): restored
   Loc: [/home/michal/dev/canonical/unity8/repo/tests/qmltests/tst_Shell.qml(2553)]

review: Needs Fixing
Revision history for this message
Michał Sawicz (saviq) wrote :

Same with just this branch, the touch version of the test fails.

Revision history for this message
Albert Astals Cid (aacid) wrote :

Fails here too (with xvfbtestShell works quite reliably but with testShell fails, seems to be dragging the wrong window)

review: Needs Fixing
2851. By Lukáš Tinkl

stabilize test

Revision history for this message
Albert Astals Cid (aacid) wrote :

Yep, testfix fixes it :)

review: Approve
Revision history for this message
Michał Sawicz (saviq) wrote :

Yuppie.

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

PASSED: Continuous integration, rev:2851
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3474/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4586
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2766
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2766
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4614
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4441
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4441/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4441
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4441/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4441
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4441/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4441
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4441/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4441
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4441/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4441
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4441/artifact/output/*zip*/output.zip

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

review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'qml/ApplicationMenus/MenuBar.qml'
--- qml/ApplicationMenus/MenuBar.qml 2017-03-08 09:53:21 +0000
+++ qml/ApplicationMenus/MenuBar.qml 2017-03-21 10:44:49 +0000
@@ -52,6 +52,10 @@
52 d.dismissAll();52 d.dismissAll();
53 }53 }
5454
55 function invokeMenu(mouseEvent) {
56 mouseArea.onClicked(mouseEvent);
57 }
58
55 GlobalShortcut {59 GlobalShortcut {
56 shortcut: Qt.Key_Alt|Qt.AltModifier60 shortcut: Qt.Key_Alt|Qt.AltModifier
57 active: enableKeyFilter61 active: enableKeyFilter
@@ -226,6 +230,7 @@
226 } // Row230 } // Row
227231
228 MouseArea {232 MouseArea {
233 id: mouseArea
229 anchors.fill: parent234 anchors.fill: parent
230 hoverEnabled: d.currentItem235 hoverEnabled: d.currentItem
231236
232237
=== modified file 'qml/Panel/Panel.qml'
--- qml/Panel/Panel.qml 2017-03-08 09:53:35 +0000
+++ qml/Panel/Panel.qml 2017-03-21 10:44:49 +0000
@@ -174,6 +174,10 @@
174 // let it fall through to the window decoration of the maximized window behind, if any174 // let it fall through to the window decoration of the maximized window behind, if any
175 mouse.accepted = false;175 mouse.accepted = false;
176 }176 }
177 var menubar = menuBarLoader.item;
178 if (menubar) {
179 menubar.invokeMenu(mouse);
180 }
177 }181 }
178182
179 Row {183 Row {
@@ -200,16 +204,17 @@
200204
201 Loader {205 Loader {
202 id: menuBarLoader206 id: menuBarLoader
207 objectName: "menuBarLoader"
203 height: parent.height208 height: parent.height
204 enabled: d.enablePointerMenu209 enabled: d.enablePointerMenu
205 opacity: d.showPointerMenu ? 1 : 0210 opacity: d.showPointerMenu ? 1 : 0
206 visible: opacity != 0211 visible: opacity != 0
207 Behavior on opacity { UbuntuNumberAnimation { duration: UbuntuAnimation.SnapDuration } }212 Behavior on opacity { UbuntuNumberAnimation { duration: UbuntuAnimation.SnapDuration } }
208 active: __applicationMenus.model213 active: __applicationMenus.model && !callHint.visible
209214
210 width: parent.width - windowControlButtons.width - units.gu(2) - __indicators.barWidth215 width: parent.width - windowControlButtons.width - units.gu(2) - __indicators.barWidth
211216
212 property bool menusRequested: menuBarLoader.item ? menuBarLoader.item.showRequested : false217 readonly property bool menusRequested: menuBarLoader.item ? menuBarLoader.item.showRequested : false
213218
214 sourceComponent: MenuBar {219 sourceComponent: MenuBar {
215 id: bar220 id: bar
@@ -231,6 +236,7 @@
231 }236 }
232237
233 onDoubleClicked: PanelState.restoreClicked()238 onDoubleClicked: PanelState.restoreClicked()
239 onPressed: mouse.accepted = false // let the parent mouse area handle this, so it can both unsnap window and show menu
234 }240 }
235 }241 }
236 }242 }
237243
=== modified file 'tests/qmltests/tst_Shell.qml'
--- tests/qmltests/tst_Shell.qml 2017-03-08 09:54:00 +0000
+++ tests/qmltests/tst_Shell.qml 2017-03-21 10:44:49 +0000
@@ -2513,27 +2513,44 @@
2513 tryCompare(app2Surface, "keymap", "fr");2513 tryCompare(app2Surface, "keymap", "fr");
2514 }2514 }
25152515
2516 function test_dragPanelToRestoreMaximizedWindow() {2516 function test_dragPanelToRestoreMaximizedWindow_data() {
2517 return [
2518 { tag: "with mouse", mouse: true },
2519 { tag: "with touch", mouse: false }
2520 ]
2521 }
2522
2523 function test_dragPanelToRestoreMaximizedWindow(data) {
2517 loadShell("desktop");2524 loadShell("desktop");
2518 shell.usageScenario = "desktop";2525 shell.usageScenario = "desktop";
2519 waitForRendering(shell);2526 waitForRendering(shell);
2520 var panel = findChild(shell, "windowControlArea");2527 var panel = findChild(shell, "windowControlArea");
2521 verify(panel);2528 verify(panel);
25222529
2523 var appSurfaceId = topLevelSurfaceList.nextId;
2524 var app = ApplicationManager.startApplication("dialer-app")
2525 waitUntilAppWindowIsFullyLoaded(appSurfaceId);
2526
2527 // start dialer, maximize it2530 // start dialer, maximize it
2528 var appContainer = findChild(shell, "appContainer");2531 var appDelegate = startApplication("dialer-app");
2529 var appDelegate = findChild(appContainer, "appDelegate_" + appSurfaceId);
2530 verify(appDelegate);2532 verify(appDelegate);
2533
2531 var maximizeButton = findChild(appDelegate, "maximizeWindowButton");2534 var maximizeButton = findChild(appDelegate, "maximizeWindowButton");
2532 mouseClick(maximizeButton);2535 if (data.mouse) {
2536 mouseClick(maximizeButton);
2537 } else {
2538 tap(maximizeButton);
2539 }
25332540
2541 waitUntilTransitionsEnd(appDelegate);
2534 tryCompare(appDelegate, "state", "maximized");2542 tryCompare(appDelegate, "state", "maximized");
25352543
2536 mouseDrag(panel, panel.width/2, panel.height/2, 0, shell.height/3, Qt.LeftButton, Qt.NoModifier, 500);2544 if (data.mouse) {
2545 mouseMove(panel, panel.width/2, panel.panelHeight/2); // to reveal the menus
2546 var menuBarLoader = findInvisibleChild(panel, "menuBarLoader");
2547 verify(menuBarLoader);
2548 tryCompare(menuBarLoader.item, "visible", true);
2549 mouseDrag(panel, panel.width/2, panel.height/2, 0, shell.height/3, Qt.LeftButton, Qt.NoModifier, 500);
2550 } else {
2551 touchFlick(panel, panel.width/2, panel.panelHeight/2, panel.width/2, shell.height/3);
2552 }
2553
2537 tryCompare(appDelegate, "state", "restored");2554 tryCompare(appDelegate, "state", "restored");
2538 }2555 }
25392556
@@ -2964,5 +2981,70 @@
2964 mouseDoubleClickSequence(panel, panel.width/2, PanelState.panelHeight/2, Qt.LeftButton, Qt.NoModifier, 300);2981 mouseDoubleClickSequence(panel, panel.width/2, PanelState.panelHeight/2, Qt.LeftButton, Qt.NoModifier, 300);
2965 tryCompare(appDelegate, "state", "restored");2982 tryCompare(appDelegate, "state", "restored");
2966 }2983 }
2984
2985 function test_noMenusWithActiveCall() {
2986 loadShell("desktop");
2987 shell.usageScenario = "desktop";
2988 waitForRendering(shell);
2989 swipeAwayGreeter();
2990
2991 // start music-app, maximize it
2992 var appDelegate = startApplication("music-app")
2993 verify(appDelegate);
2994 appDelegate.requestMaximize();
2995
2996 // move the mouse over panel to reveal the menus
2997 var panel = findChild(shell, "panel");
2998 verify(panel);
2999 mouseMove(panel, panel.width/2, panel.panelHeight/2); // to reveal the menus
3000 var menuBarLoader = findInvisibleChild(panel, "menuBarLoader");
3001 verify(menuBarLoader);
3002 tryCompare(menuBarLoader.item, "visible", true);
3003
3004 // place a phone call
3005 callManager.foregroundCall = phoneCall;
3006
3007 // menu bar should be hidden
3008 tryCompare(menuBarLoader, "active", false);
3009 tryCompare(menuBarLoader, "item", null);
3010
3011 // remove call
3012 callManager.foregroundCall = null;
3013
3014 // menu bar should be revealed
3015 tryCompare(menuBarLoader, "active", true);
3016 tryCompare(menuBarLoader.item, "visible", true);
3017 }
3018
3019 function test_maximizedWindowAndMenuInPanel() {
3020 loadShell("desktop");
3021 shell.usageScenario = "desktop";
3022 waitForRendering(shell);
3023 swipeAwayGreeter();
3024
3025 // start music-app, maximize it
3026 var appDelegate = startApplication("music-app")
3027 verify(appDelegate);
3028 appDelegate.requestMaximize();
3029 tryCompare(appDelegate, "state", "maximized");
3030
3031 // move the mouse over panel to reveal the menus
3032 var panel = findChild(shell, "panel");
3033 verify(panel);
3034 mouseMove(panel, panel.width/2, panel.panelHeight/2); // to reveal the menus
3035 var menuBar = findChild(panel, "menuBar");
3036 verify(menuBar);
3037 tryCompare(menuBar, "visible", true);
3038
3039 // check that the menu popup appears
3040 var priv = findInvisibleChild(menuBar, "d");
3041 var menuItem0 = findChild(menuBar, "menuBar-item0");
3042 verify(menuItem0);
3043 mouseMove(menuItem0, menuItem0.width/2, menuItem0.height/2, 200);
3044 tryCompare(menuItem0, "visible", true);
3045 mouseClick(menuItem0);
3046 tryCompare(priv, "currentItem", menuItem0);
3047 tryCompare(priv.currentItem, "popupVisible", true);
3048 }
2967 }3049 }
2968}3050}

Subscribers

People subscribed via source and target branches