Squish: Adapt test to changed behavior

41d68f469a restored (partially) the old behavior which
changes the '.' operator to '->' if all completions need it.

Change-Id: I92c2183e7e7f1c0d839f2340c2abe7a9f7d73af2
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
This commit is contained in:
Christian Stenger
2018-11-15 15:40:11 +01:00
committed by Robert Loehning
parent d0e4f657c9
commit b382d83fab

View File

@@ -77,8 +77,9 @@ def main():
proposalToolTips)
correction = testData.field(record, "correction")
if correction == 'all':
test.compare(len(needCorrection), len(proposalToolTips),
"Verifying whether all proposal need correction.")
__verifyLineUnderCursor__(cppwindow, record)
test.compare(len(needCorrection), 0,
"Verifying whether operator has been already corrected.")
elif correction == 'mixed':
test.verify(len(proposalToolTips) > len(needCorrection) > 0,
"Verifying whether some of the proposals need correction.")