Commit a56fc82b authored by Robert Loehning's avatar Robert Loehning

Squish: Close QMessageBox using "OK" button

Change-Id: Iead4267d0919ce4a8d7f9f5fdec61cd9ba8dd0db
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent 2786250c
......@@ -80,7 +80,8 @@ def getOrModifyFilePatternsFor(mimeType, filter='', toBePresent=None):
mBox = waitForObject("{type='QMessageBox' unnamed='1' visible='1' "
"text?='Conflicting pattern*'}", 2000)
conflictingSet = set(str(mBox.detailedText).replace("*", "").splitlines())
sendEvent("QCloseEvent", mBox)
clickButton(waitForObject("{text='OK' type='QPushButton' unnamed='1' visible='1' "
"window={type='QMessageBox' unnamed='1' visible='1'}}"))
if toBeAddedSet.intersection(conflictingSet):
test.fatal("At least one of the patterns to be added is already in use "
"for another MIME type.",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment