Squish: Don't explicitly pass default to createNewQtQuickApplication

Change-Id: I006c6cad0e972006475ad488b9a71def09de0dbb
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Loehning
2018-08-02 12:05:19 +02:00
parent e8acb75115
commit da21353276
2 changed files with 2 additions and 6 deletions

View File

@@ -31,9 +31,7 @@ def main():
return return
# using a temporary directory won't mess up a potentially existing # using a temporary directory won't mess up a potentially existing
workingDir = tempDir() workingDir = tempDir()
# we need a Qt >= 5.3 - we use checkedTargets, so we should get only valid targets projectName = createNewQtQuickApplication(workingDir)[1]
analyzerTargets = Targets.desktopTargetClasses()
projectName = createNewQtQuickApplication(workingDir, targets=analyzerTargets)[1]
editor = waitForObject(":Qt Creator_QmlJSEditor::QmlJSTextEditorWidget") editor = waitForObject(":Qt Creator_QmlJSEditor::QmlJSTextEditorWidget")
if placeCursorToLine(editor, "}"): if placeCursorToLine(editor, "}"):
type(editor, '<Left>') type(editor, '<Left>')

View File

@@ -29,11 +29,9 @@ def main():
startApplication("qtcreator" + SettingsPath) startApplication("qtcreator" + SettingsPath)
if not startedWithoutPluginError(): if not startedWithoutPluginError():
return return
# Requires Qt 4.8
targets = Targets.desktopTargetClasses()
# using a temporary directory won't mess up a potentially existing # using a temporary directory won't mess up a potentially existing
workingDir = tempDir() workingDir = tempDir()
projectName = createNewQtQuickApplication(workingDir, targets=targets)[1] projectName = createNewQtQuickApplication(workingDir)[1]
editor = waitForObject(":Qt Creator_QmlJSEditor::QmlJSTextEditorWidget") editor = waitForObject(":Qt Creator_QmlJSEditor::QmlJSTextEditorWidget")
if placeCursorToLine(editor, "}"): if placeCursorToLine(editor, "}"):
type(editor, '<Left>') type(editor, '<Left>')