sc/qa/uitest/calc_tests9/forms.py | 30 ++++++++++++++++++++++++++++++ sc/qa/uitest/data/tdf131000.ods |binary 2 files changed, 30 insertions(+)
New commits: commit df33714f0ecaf4d35011f2d2116e5e1a4ec75f1a Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Thu Feb 25 22:43:19 2021 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Fri Feb 26 08:58:18 2021 +0100 tdf#131000: sc: Add UItest Change-Id: Icb2737de1e9e14c55cf4a2f999d1d0585c98b895 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111570 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> 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 Binary files /dev/null and b/sc/qa/uitest/data/tdf131000.ods differ _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits