From b748c1b3d2d9ec15aa1ca8711b9a7da4d6dcd00d Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Tue, 10 Dec 2013 16:59:46 +0100 Subject: [PATCH] Squish: Avoid Squish crash on Mac Squish 5.0.1 has problems handling special locations of menus on Mac using Qt5.2. Change-Id: I9acc6d0f63e00815ff9ab532cb56a8ca5bb69d6a Reviewed-by: Robert Loehning --- tests/system/shared/utils.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/system/shared/utils.py b/tests/system/shared/utils.py index b46499d8b2c..e16c1842ed7 100644 --- a/tests/system/shared/utils.py +++ b/tests/system/shared/utils.py @@ -228,6 +228,14 @@ def invokeMenuItem(menu, item, *subItems): waitForObject(":Qt Creator.QtCreator.MenuBar_QMenuBar", 2000) except: nativeMouseClick(waitForObject(":Qt Creator_Core::Internal::MainWindow", 1000), 20, 20, 0, Qt.LeftButton) + # HACK to avoid squish crash using Qt5.2 on Squish 5.0.1 - remove asap + if platform.system() == "Darwin" and not isQt4Build: + if menu == "Tools" and item == "Options...": + nativeType("") + return + if menu == "File" and item == "Exit": + nativeType("") + return menuObject = waitForObjectItem(":Qt Creator.QtCreator.MenuBar_QMenuBar", menu) waitFor("menuObject.visible", 1000) activateItem(menuObject)