Squish: Exit tst_QMLS01 safely on failure

Change-Id: I6e31a3eabb062328fc5ddf34eb4bf2b8b06d36e3
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
Robert Loehning
2013-07-09 17:32:55 +02:00
parent 97a6ee9685
commit 0df387e894

View File

@@ -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