forked from qt-creator/qt-creator
Change-Id: Ib789dd239fb7dfbb684e2f97607aa30de205fe0b Reviewed-by: Robert Loehning <robert.loehning@nokia.com>
24 lines
1.1 KiB
Python
24 lines
1.1 KiB
Python
source("../../shared/qtcreator.py")
|
|
source("../../shared/suites_qtta.py")
|
|
|
|
# entry of test
|
|
def main():
|
|
startApplication("qtcreator" + SettingsPath)
|
|
# create qt quick application
|
|
createNewQtQuickApplication(tempDir(), "SampleApp")
|
|
# create syntax error in qml file
|
|
doubleClickItem(":Qt Creator_Utils::NavigationTreeView", "SampleApp.QML.qml/SampleApp.main\\.qml", 5, 5, 0, Qt.LeftButton)
|
|
if not appendToLine(waitForObject(":Qt Creator_QmlJSEditor::QmlJSTextEditorWidget"), "Text {", "SyntaxError"):
|
|
invokeMenuItem("File", "Exit")
|
|
return
|
|
# save all to invoke qml parsing
|
|
invokeMenuItem("File", "Save All")
|
|
# open issues list view
|
|
ensureChecked(waitForObject(":Qt Creator_Issues_Core::Internal::OutputPaneToggleButton"))
|
|
issuesView = waitForObject(":Qt Creator.Issues_QListView")
|
|
# verify that error is properly reported
|
|
test.verify(checkSyntaxError(issuesView, ["Unexpected token"], True),
|
|
"Verifying QML syntax error while parsing simple qt quick application.")
|
|
# exit qt creator
|
|
invokeMenuItem("File", "Exit")
|