forked from qt-creator/qt-creator
Squish: Exit tst_QMLS01 safely on failure
Change-Id: I6e31a3eabb062328fc5ddf34eb4bf2b8b06d36e3 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -95,8 +95,10 @@ def testSuggestionsManual(lineText, textToType, expectedText):
|
||||
else:
|
||||
type(editorArea, "<Ctrl+Space>")
|
||||
# check if suggestions are shown
|
||||
test.verify(checkIfObjectExists(":popupFrame_Proposal_QListView"),
|
||||
"Verifying if suggestions in manual mode are shown manually")
|
||||
if not test.verify(checkIfObjectExists(":popupFrame_Proposal_QListView"),
|
||||
"Verifying if suggestions in manual mode are shown manually"):
|
||||
__endTestSuggestions__(editorArea)
|
||||
return False
|
||||
# verify proposed suggestions
|
||||
verifySuggestions(textToType)
|
||||
# test if suggestion can be used
|
||||
|
||||
Reference in New Issue
Block a user