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:
|
try:
|
||||||
proposalListView = waitForObject(":popupFrame_Proposal_QListView")
|
proposalListView = waitForObject(":popupFrame_Proposal_QListView")
|
||||||
waitForObjectItem(proposalListView, "unsigned")
|
waitForObjectItem(proposalListView, "unsigned")
|
||||||
if useClang and platform.system() == 'Linux': # QTCREATORBUG-23159
|
model = proposalListView.model()
|
||||||
test.compare(proposalListView.model().rowCount(), 1,
|
if test.verify(model.rowCount() >= 1,
|
||||||
'Only one proposal for "unsi"?')
|
'At least one proposal for "unsi"?'):
|
||||||
|
test.compare(dumpItems(model)[0], 'unsigned',
|
||||||
|
'"unsigned" is the first proposal for "unsi"?')
|
||||||
type(proposalListView, "<Tab>")
|
type(proposalListView, "<Tab>")
|
||||||
test.compare(str(lineUnderCursor(editorWidget)).strip(), "unsigned",
|
test.compare(str(lineUnderCursor(editorWidget)).strip(), "unsigned",
|
||||||
"Step 4: Verifying if: Word 'unsigned' is completed because only one option is available.")
|
"Step 4: Verifying if: Word 'unsigned' is completed because only one option is available.")
|
||||||
|
Reference in New Issue
Block a user