forked from qt-creator/qt-creator
SquishTests: More adaption to changed wizard template
Change-Id: Ib073a8eae3ee87dc46699083799a8316da66b32d Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -12,7 +12,7 @@ def main():
|
|||||||
# create qt quick application
|
# create qt quick application
|
||||||
createNewQtQuickApplication(tempDir(), "SampleApp")
|
createNewQtQuickApplication(tempDir(), "SampleApp")
|
||||||
# create syntax error in qml file
|
# create syntax error in qml file
|
||||||
openDocument("SampleApp.Resources.qml\.qrc./.main\\.qml")
|
openDocument("SampleApp.appSampleApp.Main\\.qml")
|
||||||
if not appendToLine(waitForObject(":Qt Creator_QmlJSEditor::QmlJSTextEditorWidget"), "Window {", "SyntaxError"):
|
if not appendToLine(waitForObject(":Qt Creator_QmlJSEditor::QmlJSTextEditorWidget"), "Window {", "SyntaxError"):
|
||||||
invokeMenuItem("File", "Exit")
|
invokeMenuItem("File", "Exit")
|
||||||
return
|
return
|
||||||
|
@@ -15,8 +15,8 @@ def main():
|
|||||||
invokeMenuItem("File", "Exit")
|
invokeMenuItem("File", "Exit")
|
||||||
|
|
||||||
def prepareQmlFile():
|
def prepareQmlFile():
|
||||||
if not openDocument("untitled.untitled.qml\\.qrc./.main\\.qml"):
|
if not openDocument("untitled.appuntitled.Main\\.qml"):
|
||||||
test.fatal("Could not open main.qml")
|
test.fatal("Could not open Main.qml")
|
||||||
return None
|
return None
|
||||||
editor = waitForObject(":Qt Creator_QmlJSEditor::QmlJSTextEditorWidget")
|
editor = waitForObject(":Qt Creator_QmlJSEditor::QmlJSTextEditorWidget")
|
||||||
isDarwin = platform.system() == 'Darwin'
|
isDarwin = platform.system() == 'Darwin'
|
||||||
|
@@ -33,7 +33,7 @@ def main():
|
|||||||
checkCompile()
|
checkCompile()
|
||||||
else:
|
else:
|
||||||
appOutput = logApplicationOutput()
|
appOutput = logApplicationOutput()
|
||||||
test.verify(not ("main.qml" in appOutput or "MainForm.ui.qml" in appOutput),
|
test.verify(not ("Main.qml" in appOutput or "MainForm.ui.qml" in appOutput),
|
||||||
"Does the Application Output indicate QML errors?")
|
"Does the Application Output indicate QML errors?")
|
||||||
invokeMenuItem("File", "Close All Projects and Editors")
|
invokeMenuItem("File", "Close All Projects and Editors")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user