From 8466f777f59bdb9d454679b3a7022c207eeb43a2 Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Thu, 26 Jan 2017 18:52:25 +0100 Subject: [PATCH] Squish: Use different function name in tst_CSUP01 on Windows This reverts 7746c31774ba58c3a99f84669ec7bc8aedfdbb61 on Windows Change-Id: I6161320ee97ecfcd2510f73d955346e1bb9ebfc1 Reviewed-by: Christian Stenger --- tests/system/suite_CSUP/tst_CSUP01/test.py | 9 ++++++--- 1 file 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 de19428f721..c8c7064a390 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, "") 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.