summaryrefslogtreecommitdiff
path: root/tests/system/suite_editors
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@digia.com>2014-05-30 15:49:11 +0200
committerRobert Loehning <robert.loehning@digia.com>2014-06-13 11:33:39 +0200
commita56fc82b0a2f7f6db73ec77a0790f69bd28a307b (patch)
treecdfe9503171624d3f64019c41f754e642bdf57b0 /tests/system/suite_editors
parent2786250c172138c1ece456305264f7b5039b8f2a (diff)
downloadqt-creator-a56fc82b0a2f7f6db73ec77a0790f69bd28a307b.tar.gz
Squish: Close QMessageBox using "OK" button
Change-Id: Iead4267d0919ce4a8d7f9f5fdec61cd9ba8dd0db Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Diffstat (limited to 'tests/system/suite_editors')
-rw-r--r--tests/system/suite_editors/tst_generic_highlighter/test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/system/suite_editors/tst_generic_highlighter/test.py b/tests/system/suite_editors/tst_generic_highlighter/test.py
index df2ab56eff..335eb1a825 100644
--- a/tests/system/suite_editors/tst_generic_highlighter/test.py
+++ b/tests/system/suite_editors/tst_generic_highlighter/test.py
@@ -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.",