aboutsummaryrefslogtreecommitdiffstats
path: root/tests/system/suite_CSUP/tst_CSUP01
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@qt.io>2017-01-26 18:52:25 +0100
committerRobert Loehning <robert.loehning@qt.io>2017-01-27 12:14:31 +0000
commit8466f777f59bdb9d454679b3a7022c207eeb43a2 (patch)
treefd2f190b305003c78b01485903c56ea62a5d95d3 /tests/system/suite_CSUP/tst_CSUP01
parent8681608d8ba98a82ad029e861d741cd9954bef7f (diff)
Squish: Use different function name in tst_CSUP01 on Windows
This reverts 7746c31774ba58c3a99f84669ec7bc8aedfdbb61 on Windows Change-Id: I6161320ee97ecfcd2510f73d955346e1bb9ebfc1 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.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/system/suite_CSUP/tst_CSUP01/test.py b/tests/system/suite_CSUP/tst_CSUP01/test.py
index de19428f72..c8c7064a39 100644
--- a/tests/system/suite_CSUP/tst_CSUP01/test.py
+++ b/tests/system/suite_CSUP/tst_CSUP01/test.py
@@ -66,9 +66,12 @@ def main():
type(editorWidget, "<Return>")
type(editorWidget, "re")
triggerCompletion(editorWidget)
- waitForObjectItem(":popupFrame_Proposal_QListView", "realpath")
- doubleClickItem(":popupFrame_Proposal_QListView", "realpath", 5, 5, 0, Qt.LeftButton)
- test.compare(str(lineUnderCursor(editorWidget)).strip(), "realpath()",
+ functionName = "realpath"
+ if platform.system() in ('Windows', 'Microsoft'):
+ functionName = "realloc"
+ waitForObjectItem(":popupFrame_Proposal_QListView", functionName)
+ doubleClickItem(":popupFrame_Proposal_QListView", functionName, 5, 5, 0, Qt.LeftButton)
+ test.compare(str(lineUnderCursor(editorWidget)).strip(), functionName + "()",
"Step 3: Verifying if: The list of suggestions is opened. It is "
"possible to select one of the suggestions.")
# Step 4: Insert text "voi" to new line and press Tab.