on xenial help sign in
revert now unneeded test change
commitef1b67509b8b362622c4d1abe3507f7913120cdd authorLukáš Tinkl <lukas.tinkl@canonical.com> dateFri 3 Mar 2017, 11:20 (10 years ago) parentcf2fee6
1 file changed+3−3
tests/qmltests/ApplicationMenus/tst_MenuBar.qml+3−3
tests/qmltests/ApplicationMenus/tst_MenuBar.qml+3−3
@@ -238,12 +238,12 @@ Item {
238238 var menuItem = findChild(menuBar, "menuBar-item0");
239239 waitForRendering(menuItem);
240240 mouseClick(menuItem);
241− tryCompare(priv, "currentItem", menuItem, undefined /* timeout */, "CurrentItem should be set to item 0");
242− tryCompare(priv.currentItem, "popupVisible", true, undefined /* timeout */, "Popup should be visible");
241+ compare(priv.currentItem, menuItem, "CurrentItem should be set to item 0");
242+ compare(priv.currentItem.popupVisible, true, "Popup should be visible");
243243
244244 waitForRendering(menuItem);
245245 mouseClick(menuItem);
246− tryCompare(priv, "currentItem", null, undefined /* timeout */, "CurrentItem should be null");
246+ compare(priv.currentItem, null, "CurrentItem should be null");
247247 }
248248
249249 function test_overfow() {