aboutsummaryrefslogtreecommitdiffstats
path: root/tests/system/suite_CSUP/tst_CSUP01
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@qt.io>2016-07-19 16:35:07 +0200
committerRobert Loehning <robert.loehning@qt.io>2016-07-20 09:04:52 +0000
commit853a1b2f63df53381fbfba0fdbaf04f7937c23ce (patch)
treea9de2345a4de4ec5566564c71822a72e28d78b9d /tests/system/suite_CSUP/tst_CSUP01
parenta0f1e716c75cb748c462d0cc8d2aec586a08f63c (diff)
Squish: Wait for ClangCodeModel and catch error
Change-Id: Ia8c52126209697c1bf48a8fa1e422ec2c8869640 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'tests/system/suite_CSUP/tst_CSUP01')
-rw-r--r--tests/system/suite_CSUP/tst_CSUP01/test.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/tests/system/suite_CSUP/tst_CSUP01/test.py b/tests/system/suite_CSUP/tst_CSUP01/test.py
index ea19c623b1..624a68fd12 100644
--- a/tests/system/suite_CSUP/tst_CSUP01/test.py
+++ b/tests/system/suite_CSUP/tst_CSUP01/test.py
@@ -73,11 +73,16 @@ def main():
"possible to select one of the suggestions.")
# Step 4: Insert text "voi" to new line and press Tab.
resetLine(editorWidget)
+ if useClang and JIRA.isBugStillOpen(15639):
+ snooze(2)
type(editorWidget, "voi")
- 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.")
+ 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.")
+ 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)
resetLine(editorWidget)
lineWithFloat = "float fl = 2."