Squish: Update tst_CSUP01

The built-in code model also proposes "void_t".

Change-Id: I2462e47d5b1a69065f998244fc8372011e37a0c8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Loehning
2018-07-06 17:33:51 +02:00
parent 6a42d8bd74
commit 3bf887c2ad

View File

@@ -77,12 +77,14 @@ def main():
"possible to select one of the suggestions.") "possible to select one of the suggestions.")
# Step 4: Insert text "voi" to new line and press Tab. # Step 4: Insert text "voi" to new line and press Tab.
resetLine(editorWidget) resetLine(editorWidget)
type(editorWidget, "voi") type(editorWidget, "unsi")
try: try:
waitForObjectItem(":popupFrame_Proposal_QListView", "void") proposalListView = waitForObject(":popupFrame_Proposal_QListView")
type(waitForObject(":popupFrame_Proposal_QListView"), "<Tab>") waitForObjectItem(proposalListView, "unsigned")
test.compare(str(lineUnderCursor(editorWidget)).strip(), "void", test.compare(proposalListView.model().rowCount(), 1, 'Only one proposal for "unsi"?')
"Step 4: Verifying if: Word 'void' is completed because only one option is available.") type(proposalListView, "<Tab>")
test.compare(str(lineUnderCursor(editorWidget)).strip(), "unsigned",
"Step 4: Verifying if: Word 'unsigned' is completed because only one option is available.")
except: except:
test.fail("The expected completion popup was not shown.") test.fail("The expected completion popup was not shown.")
# Step 4.5: Insert text "2." to new line and verify that code completion is not triggered (QTCREATORBUG-16188) # Step 4.5: Insert text "2." to new line and verify that code completion is not triggered (QTCREATORBUG-16188)