diff --git a/tests/system/suite_QMLS/shared/qmls.py b/tests/system/suite_QMLS/shared/qmls.py index 264395c090b95f7291e033d47b1095e20bbc6f25..f4842f457d917c751d6b2f8635a3a6453a796689 100644 --- a/tests/system/suite_QMLS/shared/qmls.py +++ b/tests/system/suite_QMLS/shared/qmls.py @@ -37,7 +37,7 @@ def startQtCreatorWithNewAppAtQMLEditor(projectDir, projectName, line = None): # create qt quick application createNewQtQuickApplication(projectDir, projectName) # open qml file - qmlFile = projectName + ".Resources.qml\.qrc./.qml/main\\.qml" + qmlFile = projectName + ".Resources.qml\.qrc./.main\\.qml" if not openDocument(qmlFile): test.fatal("Could not open %s" % qmlFile) invokeMenuItem("File", "Exit") diff --git a/tests/system/suite_QMLS/tst_QMLS04/test.py b/tests/system/suite_QMLS/tst_QMLS04/test.py index 2c57f9b368b364f67c9742714b75c7ada1be01c2..a14d43a7c0a68d939f4e29f742ac070f0705b6a2 100644 --- a/tests/system/suite_QMLS/tst_QMLS04/test.py +++ b/tests/system/suite_QMLS/tst_QMLS04/test.py @@ -56,7 +56,7 @@ def main(): test.passes("Refactoring was properly applied in source file") else: test.fail("Refactoring of Text to MyComponent failed in source file. Content of editor:\n%s" % codeText) - myCompTE = "SampleApp.Resources.qml\\.qrc./.qml/MyComponent\\.qml" + myCompTE = "SampleApp.Resources.qml\\.qrc./.MyComponent\\.qml" # there should be new QML file generated with name "MyComponent.qml" try: waitForObjectItem(":Qt Creator_Utils::NavigationTreeView", myCompTE, 3000) @@ -86,6 +86,6 @@ def main(): #save and exit invokeMenuItem("File", "Save All") # check if new file was created in file system - test.verify(os.path.exists(os.path.join(projectDir, "SampleApp", "qml", "MyComponent.qml")), + test.verify(os.path.exists(os.path.join(projectDir, "SampleApp", "MyComponent.qml")), "Verifying if MyComponent.qml exists in file system after save") invokeMenuItem("File", "Exit") diff --git a/tests/system/suite_SCOM/tst_SCOM02/test.py b/tests/system/suite_SCOM/tst_SCOM02/test.py index a72d4f9b5dc289e2938177aa2e4882add84d234f..cb799f8846440cc2de7a90a8320130c87a1f9dfa 100644 --- a/tests/system/suite_SCOM/tst_SCOM02/test.py +++ b/tests/system/suite_SCOM/tst_SCOM02/test.py @@ -38,7 +38,7 @@ def main(): # create qt quick application createNewQtQuickApplication(tempDir(), "SampleApp") # create syntax error in qml file - openDocument("SampleApp.Resources.qml\.qrc./.qml/main\\.qml") + openDocument("SampleApp.Resources.qml\.qrc./.main\\.qml") if not appendToLine(waitForObject(":Qt Creator_QmlJSEditor::QmlJSTextEditorWidget"), "Text {", "SyntaxError"): invokeMenuItem("File", "Exit") return diff --git a/tests/system/suite_debugger/tst_simple_debug/test.py b/tests/system/suite_debugger/tst_simple_debug/test.py index 963f0b000d83386aa69b714dbd703e0d6c451ff1..1af223bf1169f665191fc5b99f81932703f3827b 100644 --- a/tests/system/suite_debugger/tst_simple_debug/test.py +++ b/tests/system/suite_debugger/tst_simple_debug/test.py @@ -48,14 +48,14 @@ def main(): 'onTriggered: console.log("Break here")']) invokeMenuItem("File", "Save All") filesAndLines = [ - { "%s.Resources.qml\.qrc./.qml/main\\.qml" % projectName : 'onTriggered.*' }, + { "%s.Resources.qml\.qrc./.main\\.qml" % projectName : 'onTriggered.*' }, { "%s.Sources.main\\.cpp" % projectName : "viewer.setOrientation\\(.+\\);" } ] test.log("Setting breakpoints") result = setBreakpointsForCurrentProject(filesAndLines) if result: expectedBreakpointsOrder = [{os.path.join(workingDir, projectName, "main.cpp"):10}, - {os.path.join(workingDir, projectName, "qml", "main.qml"):10}] + {os.path.join(workingDir, projectName, "main.qml"):10}] # Only use 4.7.4 to work around QTBUG-25187 availableConfigs = iterateBuildConfigs(len(checkedTargets), "Debug") progressBarWait() diff --git a/tests/system/suite_editors/tst_qml_indent/test.py b/tests/system/suite_editors/tst_qml_indent/test.py index e490983d1c37301102a2f5c716669e59b1c5c453..9f163542892fdd50325be266813fc6687fa6ee25 100644 --- a/tests/system/suite_editors/tst_qml_indent/test.py +++ b/tests/system/suite_editors/tst_qml_indent/test.py @@ -45,7 +45,7 @@ def main(): invokeMenuItem("File", "Exit") def prepareQmlFile(): - if not openDocument("untitled.Resources.qml\.qrc./.qml/main\\.qml"): + if not openDocument("untitled.Resources.qml\.qrc./.main\\.qml"): test.fatal("Could not open main.qml") return None editor = waitForObject(":Qt Creator_QmlJSEditor::QmlJSTextEditorWidget")