forked from qt-creator/qt-creator
Squish: Modernize failing test from tst_CSUP01
Change-Id: I5755a0265d2810a2a5929657ac455aa380a417e6 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -81,9 +81,11 @@ def main():
|
||||
try:
|
||||
proposalListView = waitForObject(":popupFrame_Proposal_QListView")
|
||||
waitForObjectItem(proposalListView, "unsigned")
|
||||
if useClang and platform.system() == 'Linux': # QTCREATORBUG-23159
|
||||
test.compare(proposalListView.model().rowCount(), 1,
|
||||
'Only one proposal for "unsi"?')
|
||||
model = proposalListView.model()
|
||||
if test.verify(model.rowCount() >= 1,
|
||||
'At least one proposal for "unsi"?'):
|
||||
test.compare(dumpItems(model)[0], 'unsigned',
|
||||
'"unsigned" is the first proposal for "unsi"?')
|
||||
type(proposalListView, "<Tab>")
|
||||
test.compare(str(lineUnderCursor(editorWidget)).strip(), "unsigned",
|
||||
"Step 4: Verifying if: Word 'unsigned' is completed because only one option is available.")
|
||||
|
Reference in New Issue
Block a user