aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@qt.io>2018-07-06 17:33:51 +0200
committerRobert Loehning <robert.loehning@qt.io>2018-07-09 09:53:55 +0000
commit3bf887c2ad0e9a20c35356d992dedfed52602b47 (patch)
tree6a1d9abe581ece1ea0d64f8d5629f4553fb1e6e7
parent6a42d8bd747fce93fa9e7af28aec8c01d609f6b4 (diff)
Squish: Update tst_CSUP01
The built-in code model also proposes "void_t". Change-Id: I2462e47d5b1a69065f998244fc8372011e37a0c8 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r--tests/system/suite_CSUP/tst_CSUP01/test.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/system/suite_CSUP/tst_CSUP01/test.py b/tests/system/suite_CSUP/tst_CSUP01/test.py
index 3512630ea4..51c9208797 100644
--- a/tests/system/suite_CSUP/tst_CSUP01/test.py
+++ b/tests/system/suite_CSUP/tst_CSUP01/test.py
@@ -77,12 +77,14 @@ def main():
"possible to select one of the suggestions.")
# Step 4: Insert text "voi" to new line and press Tab.
resetLine(editorWidget)
- type(editorWidget, "voi")
+ type(editorWidget, "unsi")
try:
- waitForObjectItem(":popupFrame_Proposal_QListView", "void")
- type(waitForObject(":popupFrame_Proposal_QListView"), "<Tab>")
- test.compare(str(lineUnderCursor(editorWidget)).strip(), "void",
- "Step 4: Verifying if: Word 'void' is completed because only one option is available.")
+ proposalListView = waitForObject(":popupFrame_Proposal_QListView")
+ waitForObjectItem(proposalListView, "unsigned")
+ test.compare(proposalListView.model().rowCount(), 1, 'Only one 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.")
except:
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)