summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2023-12-04 20:41:06 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2023-12-05 09:24:59 +0100
commit6b41d3f6778b91838c98d1648eb652de48b0511d (patch)
tree7f1f2baf6496ad0b876b57839f96d9a2aba7ce5d
parentb63a12d481cd26f960f97f74e5a4d764966db338 (diff)
uitest: remove crash report handler
Unneded since a4a1f2ecee2e7b1d50e0065e25090e262863e1c4 "Disallow crash reporting in UITests" Change-Id: I661b6111bd5142e67ee73a82c0777771e7651300 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160324 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r--uitest/uitest/test.py17
1 files changed, 1 insertions, 16 deletions
diff --git a/uitest/uitest/test.py b/uitest/uitest/test.py
index fcf9d3dee783..08c9a89ef9f5 100644
--- a/uitest/uitest/test.py
+++ b/uitest/uitest/test.py
@@ -176,17 +176,6 @@ class UITest(object):
return
time.sleep(DEFAULT_SLEEP)
- def _handle_crash_reporter(self):
- xCrashReportDlg = self._xUITest.getTopFocusWindow()
- state = get_state_as_dict(xCrashReportDlg)
- print(state)
- if state['ID'] != "CrashReportDialog":
- return False
- print("found a crash reporter")
- xCancelBtn = xCrashReportDlg.getChild("btn_cancel")
- self.close_dialog_through_button(xCancelBtn)
- return True
-
# Calls UITest.close_doc at exit
@contextmanager
def create_doc_in_start_center(self, app):
@@ -194,11 +183,7 @@ class UITest(object):
try:
xBtn = xStartCenter.getChild(app + "_all")
except RuntimeException:
- if self._handle_crash_reporter():
- xStartCenter = self._xUITest.getTopFocusWindow()
- xBtn = xStartCenter.getChild(app + "_all")
- else:
- raise
+ raise
with EventListener(self._xContext, "OnNew") as event:
xBtn.executeAction("CLICK", tuple())