summaryrefslogtreecommitdiff
path: root/tests/system/suite_editors/tst_basic_cpp_support/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/system/suite_editors/tst_basic_cpp_support/test.py')
-rw-r--r--tests/system/suite_editors/tst_basic_cpp_support/test.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/system/suite_editors/tst_basic_cpp_support/test.py b/tests/system/suite_editors/tst_basic_cpp_support/test.py
index 91e6618243..106c45c5b6 100644
--- a/tests/system/suite_editors/tst_basic_cpp_support/test.py
+++ b/tests/system/suite_editors/tst_basic_cpp_support/test.py
@@ -92,9 +92,10 @@ def main():
if not waitFor("'dummy.cpp ' in str(mainWin.windowTitle) and ' - cplusplus-tools - ' in str(mainWin.windowTitle)", 5000):
test.warning("Opening dummy.cpp seems to have failed")
# Reset cursor to the start of the document
- cursor = findObject(":Qt Creator_CppEditor::Internal::CPPEditorWidget").textCursor()
- cursor.movePosition(QTextCursor.Start)
- cppwindow.setTextCursor(cursor)
+ if platform.system() == 'Darwin':
+ type(cppwindow, "<Home>")
+ else:
+ type(cppwindow, "<Ctrl+Home>")
type(cppwindow, "<Ctrl+F>")
clickButton(waitForObject(":*Qt Creator_Utils::IconButton"))