Squish: Fix invoking context menu sub items

Change-Id: I7d498ac3d4e2e2d25b3c504a95f96e434d0d1619
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
Robert Loehning
2013-02-20 19:49:32 +01:00
committed by Christian Stenger
parent c937226db1
commit 7c9d2e3a1a
8 changed files with 9 additions and 19 deletions

View File

@@ -274,7 +274,8 @@ def invokeContextMenuItem(editorArea, command1, command2 = None):
ctxtMenu = openContextMenuOnTextCursorPosition(editorArea)
activateItem(waitForObjectItem(objectMap.realName(ctxtMenu), command1, 2000))
if command2:
activateItem(waitForObjectItem(objectMap.realName(ctxtMenu), command2, 2000))
activateItem(waitForObjectItem("{type='QMenu' visible='1' window=%s}"
% objectMap.realName(ctxtMenu), command2, 2000))
# this function invokes the "Find Usages" item from context menu
# param editor an editor object