summaryrefslogtreecommitdiff
path: root/sc/UITest_calc_dialogs.mk
diff options
context:
space:
mode:
authorArtur Neumann <artur@jankaritech.com>2019-07-05 15:36:30 +0545
committerZdenek Crhonek <zcrhonek@gmail.com>2019-07-26 08:18:22 +0200
commit271dcc757d536718795f8c24a686a75424e90f23 (patch)
tree49101f22cfecfb90b5a6aec3a435bd9d32a7d1f1 /sc/UITest_calc_dialogs.mk
parentaef615ac9c69775bf51d5bf77d62686244f586af (diff)
UI tests opening all dialogs in writer and see if it crashes
Open a dialog, close it by the given button e.g. "cancel" or "close". If the dialog has an enabled "OK" button open the dialog again and try to close it also using the OK button. For every dialog a complete new document is opened to ensure test-separation, otherwise one action could hamper the next action. For dialogs that already have other tests a "cancel/close" test was added to the previous test. As far as possible opening new documents was avoided in those cases. And in some cases a simple check was added to check if the "cancel" button does not change anything. Simmilar tests for calc have been renamed and code dublication has been removed by moving main part of the code to a helper file Change-Id: I01f197cae8bc6fe0345661fe042b655f16229485 Reviewed-on: https://gerrit.libreoffice.org/75124 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Reviewed-by: Zdenek Crhonek <zcrhonek@gmail.com>
Diffstat (limited to 'sc/UITest_calc_dialogs.mk')
-rw-r--r--sc/UITest_calc_dialogs.mk20
1 files changed, 20 insertions, 0 deletions
diff --git a/sc/UITest_calc_dialogs.mk b/sc/UITest_calc_dialogs.mk
new file mode 100644
index 000000000000..42ed785b6000
--- /dev/null
+++ b/sc/UITest_calc_dialogs.mk
@@ -0,0 +1,20 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UITest_UITest,calc_dialogs))
+
+$(eval $(call gb_UITest_add_modules,calc_dialogs,$(SRCDIR)/sc/qa/uitest,\
+ calc_dialogs/ \
+))
+
+$(eval $(call gb_UITest_set_defs,calc_dialogs, \
+ TDOC="$(SRCDIR)/sc/qa/uitest/calc_tests/data" \
+))
+
+# vim: set noet sw=4 ts=4: