@@ -238,12 +238,12 @@ Item {
238 var menuItem = findChild(menuBar, "menuBar-item0");
238 var menuItem = findChild(menuBar, "menuBar-item0");
239 waitForRendering(menuItem);
239 waitForRendering(menuItem);
240 mouseClick(menuItem);
240 mouseClick(menuItem);
241− tryCompare(priv, "currentItem", menuItem, undefined /* timeout */, "CurrentItem should be set to item 0");
241+ compare(priv.currentItem, menuItem, "CurrentItem should be set to item 0");
242− tryCompare(priv.currentItem, "popupVisible", true, undefined /* timeout */, "Popup should be visible");
242+ compare(priv.currentItem.popupVisible, true, "Popup should be visible");
244 waitForRendering(menuItem);
244 waitForRendering(menuItem);
245 mouseClick(menuItem);
245 mouseClick(menuItem);
246− tryCompare(priv, "currentItem", null, undefined /* timeout */, "CurrentItem should be null");
246+ compare(priv.currentItem, null, "CurrentItem should be null");
249 function test_overfow() {
249 function test_overfow() {