forked from qt-creator/qt-creator
Squish: Stabilize tst_qml_js_console
Change-Id: Id5c72fffddcbf88ece36b4109621e10e2a030532 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -139,6 +139,7 @@ def main():
|
|||||||
switchViewTo(ViewConstants.EDIT)
|
switchViewTo(ViewConstants.EDIT)
|
||||||
# start debugging
|
# start debugging
|
||||||
clickButton(fancyDebugButton)
|
clickButton(fancyDebugButton)
|
||||||
|
progressBarWait()
|
||||||
waitForObject(":Locals and Expressions_Debugger::Internal::WatchTreeView")
|
waitForObject(":Locals and Expressions_Debugger::Internal::WatchTreeView")
|
||||||
rootIndex = getQModelIndexStr("text='QQmlEngine'",
|
rootIndex = getQModelIndexStr("text='QQmlEngine'",
|
||||||
":Locals and Expressions_Debugger::Internal::WatchTreeView")
|
":Locals and Expressions_Debugger::Internal::WatchTreeView")
|
||||||
@@ -147,7 +148,9 @@ def main():
|
|||||||
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("Window", "Output Panes", "QML Debugger Console")
|
||||||
progressBarWait()
|
# 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)
|
||||||
# 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