~aacid/unity8/disabledMenus

« back to all changes in this revision

Viewing changes to tests/qmltests/ApplicationMenus/tst_MenuBar.qml

  • Committer: Albert Astals Cid
  • Date: 2017-03-13 14:13:50 UTC
  • mfrom: (2848.1.1 aboutToShow)
  • Revision ID: albert.astals@canonical.com-20170313141350-a0ao3x3jjmarhk7j
Merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
            menuBar.dismiss();
86
86
            menuBackend.modelData = appMenuData.generateTestData(5,5,2,3, "menu")
87
87
            activatedSpy.clear();
 
88
            waitForRendering(menuBar);
88
89
        }
89
90
 
90
91
        function test_mouseNavigation() {
97
98
            var menuItem2 = findChild(menuBar, "menuBar-item2"); verify(menuItem2);
98
99
 
99
100
            menuItem0.show();
 
101
            mouseMove(menuItem0, menuItem0.width/2, menuItem0.height/2);
100
102
            compare(priv.currentItem, menuItem0, "CurrentItem should be set to item 0");
101
103
            compare(priv.currentItem.popupVisible, true, "Popup should be visible");
102
104
 
178
180
 
179
181
            keyPress(data.tag, Qt.AltModifier, 100);
180
182
            tryCompare(priv, "currentItem", menuItem);
 
183
            keyRelease(data.tag, Qt.AltModifier, 100);
181
184
        }
182
185
 
183
186
        function test_menuActivateClosesMenu() {