Skip to content
Snippets Groups Projects
Commit 79403773 authored by Christian Stenger's avatar Christian Stenger
Browse files

Squish: Fix tst_basic_cpp_support


Change-Id: I4094e747e6090d119103cb554bc11ef3d3ffbfc4
Reviewed-by: default avatarRobert Loehning <robert.loehning@digia.com>
parent e3e177d4
No related branches found
No related tags found
No related merge requests found
......@@ -121,6 +121,13 @@ def __typeAndWaitForAction__(editor, keyCombination):
textChanged = False
cursorPos = editor.textCursor().position()
type(editor, keyCombination)
waitFor("textChanged or editor.textCursor().position() != cursorPos", 2000)
if not (textChanged or editor.textCursor().position()!=cursorPos):
waitFor("textChanged or cppEditorPositionChanged(cursorPos)", 2000)
if not (textChanged or cppEditorPositionChanged(cursorPos)):
test.warning("Waiting timed out...")
def cppEditorPositionChanged(origPos):
try:
editor = waitForObject(":Qt Creator_CppEditor::Internal::CPPEditorWidget", 500)
return editor.textCursor().position() != origPos
except:
return False
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment