diff --git a/tests/system/shared/editor_utils.py b/tests/system/shared/editor_utils.py index d29465d2df2d9b6a2ef600a55b237aa4ce38a11d..125234c06cebda43e378c66e9acf6282e326ee66 100644 --- a/tests/system/shared/editor_utils.py +++ b/tests/system/shared/editor_utils.py @@ -115,7 +115,7 @@ def markText(editor, direction, typeCount=1): # works for all standard editors def replaceEditorContent(editor, newcontent): - type(editor, "<Ctrl+A>") + type(editor, "<Ctrl+a>") type(editor, "<Delete>") type(editor, newcontent) diff --git a/tests/system/shared/utils.py b/tests/system/shared/utils.py index 913e5b2fbfa0888999eb3e4bfbad0658830257dd..1c457dab2c6b66d67e9e06fdca22f04b56cdb457 100644 --- a/tests/system/shared/utils.py +++ b/tests/system/shared/utils.py @@ -289,7 +289,7 @@ def addHelpDocumentation(which): if listWidget.count > 0: rect = listWidget.visualItemRect(listWidget.item(0)) mouseClick(listWidget, rect.x+5, rect.y+5, 0, Qt.LeftButton) - type(listWidget, "<Ctrl+A>") + type(listWidget, "<Ctrl+a>") mouseClick(waitForObject("{type='QPushButton' name='removeButton' visible='1'}"), 5, 5, 0, Qt.LeftButton) for qch in which: clickButton(waitForObject("{type='QPushButton' name='addButton' visible='1' text='Add...'}")) diff --git a/tests/system/suite_CSUP/tst_CSUP04/test.py b/tests/system/suite_CSUP/tst_CSUP04/test.py index 16217a52970e545498ae740d73a9ea7604b08980..dd8fa406d5724d99ec817ed1b178490586038df7 100644 --- a/tests/system/suite_CSUP/tst_CSUP04/test.py +++ b/tests/system/suite_CSUP/tst_CSUP04/test.py @@ -71,7 +71,7 @@ def main(): return for i in range(4): type(editorWidget, "<Left>") - type(editorWidget, "<Ctrl+Shift+U>") + type(editorWidget, "<Ctrl+Shift+u>") # wait until search finished and verify search results waitForSearchResults() validateSearchResult(3) diff --git a/tests/system/suite_CSUP/tst_CSUP05/test.py b/tests/system/suite_CSUP/tst_CSUP05/test.py index c853e37e52f8d9b79beb33838c921348aba3d688..32271b0ae73bfd9ccc2b96518b51fb0156ef921e 100644 --- a/tests/system/suite_CSUP/tst_CSUP05/test.py +++ b/tests/system/suite_CSUP/tst_CSUP05/test.py @@ -60,7 +60,7 @@ def main(): return type(editorWidget, "<Left>") markText(editorWidget, "Left", 6) - type(editorWidget, "<Ctrl+F>") + type(editorWidget, "<Ctrl+f>") # verify if find toolbar exists and if search text contains selected word test.verify(checkIfObjectExists(":*Qt Creator.Find_Find::Internal::FindToolBar"), "Verifying if: Find/Replace pane is displayed at the bottom of the view.") diff --git a/tests/system/suite_QMLS/tst_QMLS01/test.py b/tests/system/suite_QMLS/tst_QMLS01/test.py index 3e1c8d26b95173cf9270e19ed8008540fe5575f3..57319fe89d7980039f8ac607c1f4e337b2b8d469 100644 --- a/tests/system/suite_QMLS/tst_QMLS01/test.py +++ b/tests/system/suite_QMLS/tst_QMLS01/test.py @@ -33,8 +33,8 @@ source("../../shared/suites_qtta.py") # go to proper line, make backup, type needed text def __beginTestSuggestions__(editorArea, lineText, textToType): # make source code backup to clipboard - type(editorArea, "<Ctrl+A>") - type(editorArea, "<Ctrl+C>") + type(editorArea, "<Ctrl+a>") + type(editorArea, "<Ctrl+c>") # place cursor to proper position and start typing if not placeCursorToLine(editorArea, lineText): return False @@ -53,8 +53,8 @@ def verifySuggestions(textToType): # restore source code from clipboard backup def __endTestSuggestions__(editorArea): - type(editorArea, "<Ctrl+A>") - type(editorArea, "<Ctrl+V>") + type(editorArea, "<Ctrl+a>") + type(editorArea, "<Ctrl+v>") def testSuggestionsAuto(lineText, textToType, expectedText, keyToUseSuggestion): # get editor diff --git a/tests/system/suite_QMLS/tst_QMLS03/test.py b/tests/system/suite_QMLS/tst_QMLS03/test.py index bec51c5100d1303f8666c5d953228bc5a61f3040..ee9d597059152bbe6d19bbd284ebf671540b9225 100644 --- a/tests/system/suite_QMLS/tst_QMLS03/test.py +++ b/tests/system/suite_QMLS/tst_QMLS03/test.py @@ -132,7 +132,7 @@ def main(): return for i in range(5): type(editorArea, "<Left>") - type(editorArea, "<Ctrl+Shift+U>") + type(editorArea, "<Ctrl+Shift+u>") # check if usage was properly found expectedResults = [ExpectedResult("color-animation.qml", 87, "SequentialAnimation on opacity {")] resultsView = waitForObject(":Qt Creator_Find::Internal::SearchResultTreeView") diff --git a/tests/system/suite_QMLS/tst_QMLS08/test.py b/tests/system/suite_QMLS/tst_QMLS08/test.py index 8e14e7e1b6c49beca6ee8811817b5810278bedd3..415b5d13c7aa47541c3dfba1a1c83fa72048489c 100644 --- a/tests/system/suite_QMLS/tst_QMLS08/test.py +++ b/tests/system/suite_QMLS/tst_QMLS08/test.py @@ -74,13 +74,13 @@ def main(): if not verifyIndentation(editorArea): return # cancel indentation - type(editorArea, "<Ctrl+A>") + type(editorArea, "<Ctrl+a>") for i in range(5): type(editorArea, "<Shift+Backtab>") # select unindented block - type(editorArea, "<Ctrl+A>") + type(editorArea, "<Ctrl+a>") # do indentation - type(editorArea, "<Ctrl+I>") + type(editorArea, "<Ctrl+i>") # verify invoked indentation if not verifyIndentation(editorArea): return 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 22187c8d037eabe698c538917ba5d9db17c4a3ac..6534cb7436c219cbe42d6d6331e4f84825d8c1de 100644 --- a/tests/system/suite_editors/tst_basic_cpp_support/test.py +++ b/tests/system/suite_editors/tst_basic_cpp_support/test.py @@ -63,7 +63,7 @@ def main(): # - Press F2 or select from the menu: Tools / C++ / Follow Symbol under Cursor # Creator will show you the declaration of the variable. - type(cppwindow, "<Ctrl+F>") + type(cppwindow, "<Ctrl+f>") type(waitForObject(":*Qt Creator.findEdit_Utils::FilterLineEdit"), " xi") type(waitForObject(":*Qt Creator.findEdit_Utils::FilterLineEdit"), "<Return>") __typeAndWaitForAction__(cppwindow, "<F2>") @@ -72,7 +72,7 @@ def main(): # - Move the cursor to a function call. # - Press F2 or select from the menu: Tools / C++ / Follow Symbol under Cursor # Creator will show you the definition of the function. - type(cppwindow, "<Ctrl+F>") + type(cppwindow, "<Ctrl+f>") clickButton(waitForObject(":*Qt Creator_Utils::IconButton")) type(waitForObject(":*Qt Creator.findEdit_Utils::FilterLineEdit"), "freefunc2") type(waitForObject(":*Qt Creator.findEdit_Utils::FilterLineEdit"), "<Return>") @@ -94,7 +94,7 @@ def main(): else: type(cppwindow, "<Ctrl+Home>") - type(cppwindow, "<Ctrl+F>") + type(cppwindow, "<Ctrl+f>") clickButton(waitForObject(":*Qt Creator_Utils::IconButton")) type(waitForObject(":*Qt Creator.findEdit_Utils::FilterLineEdit"), "Dummy::Dummy") # Take us to the second instance diff --git a/tests/system/suite_editors/tst_qml_indent/test.py b/tests/system/suite_editors/tst_qml_indent/test.py index 9f163542892fdd50325be266813fc6687fa6ee25..f9ee862be52c51bde00cead66ce00295de4338ab 100644 --- a/tests/system/suite_editors/tst_qml_indent/test.py +++ b/tests/system/suite_editors/tst_qml_indent/test.py @@ -65,9 +65,9 @@ def prepareQmlFile(): markText(editor, "Ctrl+End") # unmark the last line type(editor, "<Shift+Up>") - type(editor, "<Ctrl+C>") + type(editor, "<Ctrl+c>") for j in range(10): - type(editor, "<Ctrl+V>") + type(editor, "<Ctrl+v>") # assume the current editor content to be indented correctly originalText = "%s" % editor.plainText indented = editor.plainText @@ -80,10 +80,10 @@ def testReIndent(originalText): editor = waitForObject(":Qt Creator_QmlJSEditor::QmlJSTextEditorWidget") correctIndented = len(originalText) incorrectIndented = correctIndented + 4004 - type(editor, "<Ctrl+A>") + type(editor, "<Ctrl+a>") test.log("calling re-indent") starttime = datetime.utcnow() - type(editor, "<Ctrl+I>") + type(editor, "<Ctrl+i>") waitFor("len(str(editor.plainText)) in (incorrectIndented, correctIndented)", 25000) endtime = datetime.utcnow() test.xverify(originalText == str(editor.plainText),