forked from qt-creator/qt-creator
Squish: Update menu items
Change-Id: Ibbca07fb02092ce829246e99b2365b513b1fa4e0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -51,14 +51,14 @@ def handleDebuggerWarnings(config, isMsvcBuild=False):
|
|||||||
clickButton("{text='OK' type='QPushButton' unnamed='1' visible='1' window=%s}" % msgBox)
|
clickButton("{text='OK' type='QPushButton' unnamed='1' visible='1' window=%s}" % msgBox)
|
||||||
|
|
||||||
def takeDebuggerLog():
|
def takeDebuggerLog():
|
||||||
invokeMenuItem("Window", "Views", "Global Debugger Log")
|
invokeMenuItem("View", "Views", "Global Debugger Log")
|
||||||
debuggerLogWindow = waitForObject("{container=':DebugModeWidget.Debugger Log_QDockWidget' "
|
debuggerLogWindow = waitForObject("{container=':DebugModeWidget.Debugger Log_QDockWidget' "
|
||||||
"type='Debugger::Internal::DebuggerPane' unnamed='1' visible='1'}")
|
"type='Debugger::Internal::DebuggerPane' unnamed='1' visible='1'}")
|
||||||
debuggerLog = str(debuggerLogWindow.plainText)
|
debuggerLog = str(debuggerLogWindow.plainText)
|
||||||
mouseClick(debuggerLogWindow)
|
mouseClick(debuggerLogWindow)
|
||||||
invokeContextMenuItem(debuggerLogWindow, "Clear Contents")
|
invokeContextMenuItem(debuggerLogWindow, "Clear Contents")
|
||||||
waitFor("str(debuggerLogWindow.plainText)==''", 5000)
|
waitFor("str(debuggerLogWindow.plainText)==''", 5000)
|
||||||
invokeMenuItem("Window", "Views", "Global Debugger Log")
|
invokeMenuItem("View", "Views", "Global Debugger Log")
|
||||||
return debuggerLog
|
return debuggerLog
|
||||||
|
|
||||||
# function to set breakpoints for the current project
|
# function to set breakpoints for the current project
|
||||||
|
@@ -52,7 +52,7 @@ def main():
|
|||||||
workingDir = tempDir()
|
workingDir = tempDir()
|
||||||
projectName = createEmptyQtProject(workingDir, "EmptyQtProj", targets)
|
projectName = createEmptyQtProject(workingDir, "EmptyQtProj", targets)
|
||||||
waitForProjectParsing()
|
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")
|
editor = waitForObject(":Qt Creator_CppEditor::Internal::CPPEditorWidget")
|
||||||
typeLines(editor, ["int main() {"])
|
typeLines(editor, ["int main() {"])
|
||||||
invokeMenuItem("File", "Save All")
|
invokeMenuItem("File", "Save All")
|
||||||
|
@@ -152,7 +152,7 @@ def main():
|
|||||||
invokeMenuItem("View", "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("View", "Views", view)
|
||||||
# color and float values have additional ZERO WIDTH SPACE (\u200b), different usage of
|
# color and float values have additional ZERO WIDTH SPACE (\u200b), different usage of
|
||||||
# whitespaces inside expressions is part of the test
|
# whitespaces inside expressions is part of the test
|
||||||
checks = [("color", u"#\u200b008000"), ("width", "50"),
|
checks = [("color", u"#\u200b008000"), ("width", "50"),
|
||||||
|
Reference in New Issue
Block a user