summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2021-02-25 22:43:19 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2021-02-26 08:58:18 +0100
commitdf33714f0ecaf4d35011f2d2116e5e1a4ec75f1a (patch)
treec8901fbdfbc6dc16da0da6e9c04d0f8d244185d2
parent12921f1d4f8d1c6fc2202627e70d0d7bcee847ac (diff)
tdf#131000: sc: Add UItest
Change-Id: Icb2737de1e9e14c55cf4a2f999d1d0585c98b895 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111570 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r--sc/qa/uitest/calc_tests9/forms.py30
-rw-r--r--sc/qa/uitest/data/tdf131000.odsbin0 -> 39029 bytes
2 files changed, 30 insertions, 0 deletions
diff --git a/sc/qa/uitest/calc_tests9/forms.py b/sc/qa/uitest/calc_tests9/forms.py
new file mode 100644
index 000000000000..b682cf69c9ea
--- /dev/null
+++ b/sc/qa/uitest/calc_tests9/forms.py
@@ -0,0 +1,30 @@
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
+#
+# 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/.
+#
+from uitest.framework import UITestCase
+from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file
+from libreoffice.uno.propertyvalue import mkPropertyValues
+
+class Forms(UITestCase):
+
+ def test_tdf131000(self):
+
+ self.ui_test.load_file(get_url_for_data_file("tdf131000.ods"))
+ xCalcDoc = self.xUITest.getTopFocusWindow()
+ gridwin = xCalcDoc.getChild("grid_window")
+
+ gridwin.executeAction("SELECT", mkPropertyValues({"OBJECT": "form"}))
+
+ # Without the fix in place, this test would have hung here
+ self.ui_test.execute_modeless_dialog_through_command(".uno:ControlProperties")
+
+ xCellRange = self.ui_test.wait_until_child_is_available('textfield-Source cell range')
+
+ self.assertEqual("A1:A7000", get_state_as_dict(xCellRange)['Text'])
+
+ self.ui_test.close_doc()
+
+# vim: set shiftwidth=4 softtabstop=4 expandtab:
diff --git a/sc/qa/uitest/data/tdf131000.ods b/sc/qa/uitest/data/tdf131000.ods
new file mode 100644
index 000000000000..f0b1d38ea7fe
--- /dev/null
+++ b/sc/qa/uitest/data/tdf131000.ods
Binary files differ