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

Proposed by Albert Astals Cid
Status: Merged
Approved by: Lukáš Tinkl
Approved revision: 2892
Merged at revision: 2911
Proposed branch: lp:~aacid/unity8/fix_overflow_menu_regression
Merge into: lp:unity8
Diff against target: 32 lines (+11/-0)
2 files modified
qml/ApplicationMenus/MenuBar.qml (+3/-0)
tests/qmltests/ApplicationMenus/tst_MenuBar.qml (+8/-0)
To merge this branch: bzr merge lp:~aacid/unity8/fix_overflow_menu_regression
Reviewer Review Type Date Requested Status
Lukáš Tinkl (community) Approve
Unity8 CI Bot continuous-integration Approve
Review via email: mp+321049@code.launchpad.net

Commit message

Hook up aboutToShow for overflow menus

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

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

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

Yup, works fine

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

Yes

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/ApplicationMenus/MenuBar.qml'
2--- qml/ApplicationMenus/MenuBar.qml 2017-03-21 10:56:10 +0000
3+++ qml/ApplicationMenus/MenuBar.qml 2017-03-27 09:50:49 +0000
4@@ -370,6 +370,9 @@
5 function activate(index) {
6 return sourceModel.activate(mapRowToSource(index));
7 }
8+ function aboutToShow(index) {
9+ return sourceModel.aboutToShow(mapRowToSource(index));
10+ }
11 }
12
13 Connections {
14
15=== modified file 'tests/qmltests/ApplicationMenus/tst_MenuBar.qml'
16--- tests/qmltests/ApplicationMenus/tst_MenuBar.qml 2017-03-21 10:56:10 +0000
17+++ tests/qmltests/ApplicationMenus/tst_MenuBar.qml 2017-03-27 09:50:49 +0000
18@@ -329,6 +329,14 @@
19 return false;
20 }, true);
21
22+ mouseClick(overflow);
23+ verify(overflow.__popup);
24+ var menuItem = findChild(menuBar, "overflow-menu-item0-actionItem");
25+ waitForRendering(menuItem);
26+ mouseClick(menuItem);
27+
28+ verify(findChild(menuBar, "overflow-menu-item0-menu-item0-actionItem"));
29+
30 tryCompareFunction(function() {
31 menuBackend.removeRow(0);
32 wait(1);

Subscribers

People subscribed via source and target branches