Squish: Evolution of tst_codepasting

Change-Id: Ia234672077e71caa02b7823555003750508fa828
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
Robert Loehning
2013-08-22 12:43:55 +02:00
parent 01b3e1fa54
commit 8f19fd60de

View File

@@ -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)