Squish: Update menu items

Change-Id: Ibbca07fb02092ce829246e99b2365b513b1fa4e0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Loehning
2020-06-24 19:01:48 +02:00
parent 3650dd8b42
commit cc63b3b47a
3 changed files with 4 additions and 4 deletions

View File

@@ -51,14 +51,14 @@ def handleDebuggerWarnings(config, isMsvcBuild=False):
clickButton("{text='OK' type='QPushButton' unnamed='1' visible='1' window=%s}" % msgBox)
def takeDebuggerLog():
invokeMenuItem("Window", "Views", "Global Debugger Log")
invokeMenuItem("View", "Views", "Global Debugger Log")
debuggerLogWindow = waitForObject("{container=':DebugModeWidget.Debugger Log_QDockWidget' "
"type='Debugger::Internal::DebuggerPane' unnamed='1' visible='1'}")
debuggerLog = str(debuggerLogWindow.plainText)
mouseClick(debuggerLogWindow)
invokeContextMenuItem(debuggerLogWindow, "Clear Contents")
waitFor("str(debuggerLogWindow.plainText)==''", 5000)
invokeMenuItem("Window", "Views", "Global Debugger Log")
invokeMenuItem("View", "Views", "Global Debugger Log")
return debuggerLog
# function to set breakpoints for the current project

View File

@@ -52,7 +52,7 @@ def main():
workingDir = tempDir()
projectName = createEmptyQtProject(workingDir, "EmptyQtProj", targets)
waitForProjectParsing()
addFileToProject(os.path.join(workingDir, projectName), " C++", "C++ Source File", "main.cpp")
addFileToProject(os.path.join(workingDir, projectName), " C/C++", "C/C++ Source File", "main.cpp")
editor = waitForObject(":Qt Creator_CppEditor::Internal::CPPEditorWidget")
typeLines(editor, ["int main() {"])
invokeMenuItem("File", "Save All")

View File

@@ -152,7 +152,7 @@ def main():
invokeMenuItem("View", "Output Panes", "QML Debugger Console")
# Window might be too small to show Locals, so close what we don't need
for view in ("Stack", "Breakpoints", "Expressions"):
invokeMenuItem("Window", "Views", view)
invokeMenuItem("View", "Views", view)
# color and float values have additional ZERO WIDTH SPACE (\u200b), different usage of
# whitespaces inside expressions is part of the test
checks = [("color", u"#\u200b008000"), ("width", "50"),