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
=== modified file 'qml/ApplicationMenus/MenuBar.qml'
--- qml/ApplicationMenus/MenuBar.qml 2017-03-21 10:56:10 +0000
+++ qml/ApplicationMenus/MenuBar.qml 2017-03-27 09:50:49 +0000
@@ -370,6 +370,9 @@
370 function activate(index) {370 function activate(index) {
371 return sourceModel.activate(mapRowToSource(index));371 return sourceModel.activate(mapRowToSource(index));
372 }372 }
373 function aboutToShow(index) {
374 return sourceModel.aboutToShow(mapRowToSource(index));
375 }
373 }376 }
374377
375 Connections {378 Connections {
376379
=== modified file 'tests/qmltests/ApplicationMenus/tst_MenuBar.qml'
--- tests/qmltests/ApplicationMenus/tst_MenuBar.qml 2017-03-21 10:56:10 +0000
+++ tests/qmltests/ApplicationMenus/tst_MenuBar.qml 2017-03-27 09:50:49 +0000
@@ -329,6 +329,14 @@
329 return false;329 return false;
330 }, true);330 }, true);
331331
332 mouseClick(overflow);
333 verify(overflow.__popup);
334 var menuItem = findChild(menuBar, "overflow-menu-item0-actionItem");
335 waitForRendering(menuItem);
336 mouseClick(menuItem);
337
338 verify(findChild(menuBar, "overflow-menu-item0-menu-item0-actionItem"));
339
332 tryCompareFunction(function() {340 tryCompareFunction(function() {
333 menuBackend.removeRow(0);341 menuBackend.removeRow(0);
334 wait(1);342 wait(1);

Subscribers

People subscribed via source and target branches