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,13 +77,10 @@ def main():
clickButton(waitForObject(":CodePaster__Internal__PasteSelectDialog.OK_QPushButton")) clickButton(waitForObject(":CodePaster__Internal__PasteSelectDialog.OK_QPushButton"))
filenameCombo = waitForObject(":Qt Creator_FilenameQComboBox") filenameCombo = waitForObject(":Qt Creator_FilenameQComboBox")
waitFor("not filenameCombo.currentText.isEmpty()", 20000) waitFor("not filenameCombo.currentText.isEmpty()", 20000)
if protocol == "Pastebin.Com" and JIRA.isBugStillOpen(9997, JIRA.Bug.CREATOR): if protocol == "Pastebin.Com":
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") editor = waitForObject(":Qt Creator_CppEditor::Internal::CPPEditorWidget")
if protocol == "Paste.KDE.Org" and JIRA.isBugStillOpen(9995, JIRA.Bug.CREATOR): test.compare(filenameCombo.currentText, "%s: %s" % (protocol, pasteId), "Verify title of editor")
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(editor.plainText, pastedText, "Verify that pasted and fetched texts are the same")
invokeMenuItem("File", "Close All") invokeMenuItem("File", "Close All")
invokeMenuItem("File", "Open File or Project...") invokeMenuItem("File", "Open File or Project...")