Squish: Avoid crash of tst_CSUP06

Change-Id: I76318223443ec2e0cc8ddd887a8ac70a6993c0c4
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
Robert Loehning
2014-09-18 18:10:40 +02:00
parent 644b9131dd
commit dd1bc1f607

View File

@@ -149,6 +149,7 @@ def checkSymbolCompletion(editor, isClangCodeModel):
propShown = waitFor("object.exists(':popupFrame_TextEditor::GenericProposalWidget')", 2500) propShown = waitFor("object.exists(':popupFrame_TextEditor::GenericProposalWidget')", 2500)
test.compare(not propShown, symbol in missing, test.compare(not propShown, symbol in missing,
"Proposal widget is (not) shown as expected (%s)" % symbol) "Proposal widget is (not) shown as expected (%s)" % symbol)
found = []
if propShown: if propShown:
proposalListView = waitForObject(':popupFrame_Proposal_QListView') proposalListView = waitForObject(':popupFrame_Proposal_QListView')
found = dumpItems(proposalListView.model()) found = dumpItems(proposalListView.model())