on xenial help sign in
fixup the other failing test
commit0fbf977ba88d52121aebf7edbdce21be590dd3c3 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateMon 27 Feb 2017, 15:06 (10 years ago) parent24a7fe4
1 file changed+3−3
tests/qmltests/ApplicationMenus/tst_MenuBar.qml+3−3
tests/qmltests/ApplicationMenus/tst_MenuBar.qml+3−3
@@ -235,12 +235,12 @@ Item {
235235 var menuItem = findChild(menuBar, "menuBar-item0");
236236 waitForRendering(menuItem);
237237 mouseClick(menuItem);
238− compare(priv.currentItem, menuItem, "CurrentItem should be set to item 0");
239− compare(priv.currentItem.popupVisible, true, "Popup should be visible");
238+ tryCompare(priv, "currentItem", menuItem, undefined /* timeout */, "CurrentItem should be set to item 0");
239+ tryCompare(priv.currentItem, "popupVisible", true, undefined /* timeout */, "Popup should be visible");
240240
241241 waitForRendering(menuItem);
242242 mouseClick(menuItem);
243− compare(priv.currentItem, null, "CurrentItem should be null");
243+ tryCompare(priv, "currentItem", null, undefined /* timeout */, "CurrentItem should be null");
244244 }
245245
246246 function test_overfow() {