From 8f19fd60de186d04174149a3d8c6b74c28d0ea0d Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Thu, 22 Aug 2013 12:43:55 +0200 Subject: [PATCH] Squish: Evolution of tst_codepasting Change-Id: Ia234672077e71caa02b7823555003750508fa828 Reviewed-by: Christian Stenger --- tests/system/suite_tools/tst_codepasting/test.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/system/suite_tools/tst_codepasting/test.py b/tests/system/suite_tools/tst_codepasting/test.py index fcbff9930cd..222297416f6 100644 --- a/tests/system/suite_tools/tst_codepasting/test.py +++ b/tests/system/suite_tools/tst_codepasting/test.py @@ -77,14 +77,11 @@ def main(): clickButton(waitForObject(":CodePaster__Internal__PasteSelectDialog.OK_QPushButton")) filenameCombo = waitForObject(":Qt Creator_FilenameQComboBox") waitFor("not filenameCombo.currentText.isEmpty()", 20000) - if protocol == "Pastebin.Com" and JIRA.isBugStillOpen(9997, JIRA.Bug.CREATOR): + if protocol == "Pastebin.Com": protocol = "Pastebin.com" - test.compare(filenameCombo.currentText, "%s: %s" % (protocol, pasteId), "Verify title of editor") editor = waitForObject(":Qt Creator_CppEditor::Internal::CPPEditorWidget") - if protocol == "Paste.KDE.Org" and JIRA.isBugStillOpen(9995, JIRA.Bug.CREATOR): - test.xcompare(editor.plainText, pastedText, "Verify that pasted and fetched texts are the same") - else: - test.compare(editor.plainText, pastedText, "Verify that pasted and fetched texts are the same") + test.compare(filenameCombo.currentText, "%s: %s" % (protocol, pasteId), "Verify title of editor") + test.compare(editor.plainText, pastedText, "Verify that pasted and fetched texts are the same") invokeMenuItem("File", "Close All") invokeMenuItem("File", "Open File or Project...") selectFromFileDialog(sourceFile)