Squish: Adapt to changed menus

Change-Id: I8557003bbc94affb018b09e6d5d36cae0f72403a
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
This commit is contained in:
Christian Stenger
2020-05-26 14:09:31 +02:00
committed by Robert Loehning
parent 0039d5ce79
commit 3a97df0f61
2 changed files with 3 additions and 3 deletions

View File

@@ -652,11 +652,11 @@ def openVcsLog():
waitForObject("{text='Version Control' type='QLabel' unnamed='1' visible='1' " waitForObject("{text='Version Control' type='QLabel' unnamed='1' visible='1' "
"window=':Qt Creator_Core::Internal::MainWindow'}", 2000) "window=':Qt Creator_Core::Internal::MainWindow'}", 2000)
except: except:
invokeMenuItem("Window", "Output Panes", "Version Control") invokeMenuItem("View", "Output Panes", "Version Control")
def openGeneralMessages(): def openGeneralMessages():
if not object.exists(":Qt Creator_Core::OutputWindow"): if not object.exists(":Qt Creator_Core::OutputWindow"):
invokeMenuItem("Window", "Output Panes", "General Messages") invokeMenuItem("View", "Output Panes", "General Messages")
# function that retrieves a specific child object by its class # function that retrieves a specific child object by its class
# this is sometimes the best way to avoid using waitForObject() on objects that # this is sometimes the best way to avoid using waitForObject() on objects that

View File

@@ -149,7 +149,7 @@ def main():
mainRect = getQModelIndexStr("text='Rectangle'", rootIndex) mainRect = getQModelIndexStr("text='Rectangle'", rootIndex)
doubleClick(waitForObject(mainRect)) doubleClick(waitForObject(mainRect))
if not object.exists(":DebugModeWidget_Debugger::Internal::ConsoleView"): if not object.exists(":DebugModeWidget_Debugger::Internal::ConsoleView"):
invokeMenuItem("Window", "Output Panes", "QML Debugger Console") invokeMenuItem("View", "Output Panes", "QML Debugger Console")
# Window might be too small to show Locals, so close what we don't need # Window might be too small to show Locals, so close what we don't need
for view in ("Stack", "Breakpoints", "Expressions"): for view in ("Stack", "Breakpoints", "Expressions"):
invokeMenuItem("Window", "Views", view) invokeMenuItem("Window", "Views", view)