aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@digia.com>2013-05-03 10:31:00 +0200
committerChristian Stenger <christian.stenger@digia.com>2013-05-06 12:46:18 +0200
commitedf8b4a59b79a3fef254542c92e4befabf3ced3e (patch)
treea64fa8ba2e9e676c34519b633bfdf396db7d6af8
parente0b7cd6b03b5ac09c889b798d02e8e8b853a74da (diff)
Squish: Stabilize invoking context menu items on Mac
Change-Id: I64ed356b6120c38d51c646ae409bbbc3a4fe9e8e Reviewed-by: Robert Loehning <robert.loehning@digia.com>
-rw-r--r--tests/system/shared/editor_utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/system/shared/editor_utils.py b/tests/system/shared/editor_utils.py
index ac698353dd..a48a523847 100644
--- a/tests/system/shared/editor_utils.py
+++ b/tests/system/shared/editor_utils.py
@@ -47,6 +47,8 @@ def menuVisibleAtEditor(editor, menuInList):
menuInList[0] = None
try:
menu = waitForObject("{type='QMenu' unnamed='1' visible='1'}", 500)
+ if platform.system() == 'Darwin':
+ menu.activateWindow()
success = menu.visible and widgetContainsPoint(editor, menu.mapToGlobal(QPoint(0, 0)))
if success:
menuInList[0] = menu