on xenial help sign in
fixup the other failing test
0fbf977Lukáš Tinkl
tests/qmltests/ApplicationMenus/tst_MenuBar.qml+3−3
@@ -235,12 +235,12 @@ Item {
235 var menuItem = findChild(menuBar, "menuBar-item0");
235 var menuItem = findChild(menuBar, "menuBar-item0");
236 waitForRendering(menuItem);
236 waitForRendering(menuItem);
237 mouseClick(menuItem);
237 mouseClick(menuItem);
238− compare(priv.currentItem, menuItem, "CurrentItem should be set to item 0");
238+ tryCompare(priv, "currentItem", menuItem, undefined /* timeout */, "CurrentItem should be set to item 0");
239− compare(priv.currentItem.popupVisible, true, "Popup should be visible");
239+ tryCompare(priv.currentItem, "popupVisible", true, undefined /* timeout */, "Popup should be visible");
240
240
241 waitForRendering(menuItem);
241 waitForRendering(menuItem);
242 mouseClick(menuItem);
242 mouseClick(menuItem);
243− compare(priv.currentItem, null, "CurrentItem should be null");
243+ tryCompare(priv, "currentItem", null, undefined /* timeout */, "CurrentItem should be null");
244 }
244 }
245
245
246 function test_overfow() {
246 function test_overfow() {