Squish: Update tst_codepasting

Change-Id: Ie908f0af267f420e107c06ae039bb085462f945d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Loehning
2020-10-12 19:50:24 +02:00
parent fb0db5c745
commit 15c9de9251

View File

@@ -239,7 +239,7 @@ def main():
clickButton(waitForObject(":*Qt Creator.Clear_QToolButton"))
continue
test.compare(filenameCombo.currentText, "%s: %s" % (protocol, pasteId), "Verify title of editor")
if protocol in (NAME_PBCOM, NAME_DPCOM) and pastedText.endswith("\n"):
if protocol in (NAME_DPCOM) and pastedText.endswith("\n"):
pastedText = pastedText[:-1]
test.compare(editor.plainText, pastedText, "Verify that pasted and fetched texts are the same")