forked from qt-creator/qt-creator
Squish: Fix suite_QMLS
Change-Id: Iab607408858bcf0acf7f55fd4a6145ee87090d4a Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -37,7 +37,7 @@ def startQtCreatorWithNewAppAtQMLEditor(projectDir, projectName, line = None):
|
||||
# create qt quick application
|
||||
createNewQtQuickApplication(projectDir, projectName)
|
||||
# open qml file
|
||||
qmlFile = projectName + ".QML.qml/" + projectName + ".main\\.qml"
|
||||
qmlFile = projectName + ".QML.qml.main\\.qml"
|
||||
if not openDocument(qmlFile):
|
||||
test.fatal("Could not open %s" % qmlFile)
|
||||
invokeMenuItem("File", "Exit")
|
||||
|
@@ -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.QML.qml/SampleApp.MyComponent\\.qml"
|
||||
myCompTE = "SampleApp.QML.qml.MyComponent\\.qml"
|
||||
appeared = False
|
||||
# there should be new QML file generated with name "MyComponent.qml"
|
||||
try:
|
||||
@@ -86,7 +86,7 @@ def main():
|
||||
#save and exit
|
||||
invokeMenuItem("File", "Save All")
|
||||
# check if new file was created in file system
|
||||
test.verify(os.path.exists(projectDir + "/SampleApp/qml/SampleApp/MyComponent.qml"),
|
||||
test.verify(os.path.exists(projectDir + "/SampleApp/qml/MyComponent.qml"),
|
||||
"Verifying if MyComponent.qml exists in file system after save")
|
||||
invokeMenuItem("File", "Exit")
|
||||
|
||||
|
Reference in New Issue
Block a user