forked from qt-creator/qt-creator
Squish: Break endless loop in tst_CSUP06
Change-Id: Id0762128a9c2b6b3cc15684ff1b35c38b3a64c97 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -196,6 +196,7 @@
|
||||
:Session Manager_ProjectExplorer::Internal::SessionDialog {name='ProjectExplorer__Internal__SessionDialog' type='ProjectExplorer::Internal::SessionDialog' visible='1' windowTitle='Session Manager'}
|
||||
:Startup.contextHelpComboBox_QComboBox {container=':Form.Startup_QGroupBox' name='contextHelpComboBox' type='QComboBox' visible='1'}
|
||||
:User Interface.languageBox_QComboBox {container=':Core__Internal__GeneralSettings.User Interface_QGroupBox' name='languageBox' type='QComboBox' visible='1'}
|
||||
:Utils::FakeToolTip {type='Utils::FakeToolTip' unnamed='1' visible='1'}
|
||||
:Widget Box_qdesigner_internal::WidgetBoxTreeWidget {container=':*Qt Creator.Widget Box_QDockWidget' type='qdesigner_internal::WidgetBoxTreeWidget' unnamed='1' visible='1'}
|
||||
:Working Copy_Utils::BaseValidatingLineEdit {type='Utils::FancyLineEdit' unnamed='1' visible='1' window=':New_ProjectExplorer::JsonWizard'}
|
||||
:WritePermissions_Core::Internal::ReadOnlyFilesDialog {name='Core__Internal__ReadOnlyFilesDialog' type='Core::ReadOnlyFilesDialog' visible='1' windowTitle='Files Without Write Permissions'}
|
||||
|
@@ -28,7 +28,9 @@ source("../../shared/qtcreator.py")
|
||||
def moveDownToNextNonEmptyLine(editor):
|
||||
currentLine = "" # there's no do-while in python - so use empty line which fails
|
||||
while not currentLine:
|
||||
type(editor, "<Down>")
|
||||
if waitFor("object.exists(':Utils::FakeToolTip')", 100):
|
||||
type(editor, "<Esc>") # close possibly shown completion tooltip so pressing
|
||||
type(editor, "<Down>") # down scrolls the line, not completion alternatives
|
||||
currentLine = str(lineUnderCursor(editor)).strip()
|
||||
return currentLine
|
||||
|
||||
|
Reference in New Issue
Block a user