@@ -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");
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");
246 function test_overfow() {
246 function test_overfow() {