sw/qa/uitest/table/tdf170554_save_table.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
New commits: commit c9e9ea9d03c6cd315b2071bbfa2a3812799ea815 Author: Xisco Fauli <[email protected]> AuthorDate: Fri Feb 20 14:02:59 2026 +0100 Commit: Xisco Fauli <[email protected]> CommitDate: Fri Feb 20 17:15:08 2026 +0100 related tdf#170554: No need to use a large table in the UItest The issue is also reproduced with a 2x2 table. it was reported the test takes 13 minutes to pass in a dbgutil build Change-Id: If01067824d3ea0e3ff3510ef026dc2823a427d44 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199851 Reviewed-by: Miklos Vajna <[email protected]> Tested-by: Jenkins diff --git a/sw/qa/uitest/table/tdf170554_save_large_table.py b/sw/qa/uitest/table/tdf170554_save_table.py similarity index 80% rename from sw/qa/uitest/table/tdf170554_save_large_table.py rename to sw/qa/uitest/table/tdf170554_save_table.py index 8964a51db9a5..f0ebf7542cc1 100644 --- a/sw/qa/uitest/table/tdf170554_save_large_table.py +++ b/sw/qa/uitest/table/tdf170554_save_table.py @@ -16,7 +16,7 @@ import os.path class tdf170554(UITestCase): - def test_tdf170554_save_large_table(self): + def test_tdf170554_save_table(self): with TemporaryDirectory() as tempdir: xFilePath = os.path.join(tempdir, 'tdf170554-tmp.odt') @@ -27,18 +27,18 @@ class tdf170554(UITestCase): xColSpin = xDialog.getChild("colspin") xColSpin.executeAction("TYPE", mkPropertyValues({"KEYCODE":"CTRL+A"})) - xColSpin.executeAction("TYPE", mkPropertyValues({"TEXT": "40"})) + xColSpin.executeAction("TYPE", mkPropertyValues({"TEXT": "2"})) xRowSpin = xDialog.getChild("rowspin") xRowSpin.executeAction("TYPE", mkPropertyValues({"KEYCODE":"CTRL+A"})) - xRowSpin.executeAction("TYPE", mkPropertyValues({"TEXT": "600"})) + xRowSpin.executeAction("TYPE", mkPropertyValues({"TEXT": "2"})) - self.assertEqual("40", get_state_as_dict(xColSpin)["Text"]) - self.assertEqual("600", get_state_as_dict(xRowSpin)["Text"]) + self.assertEqual("2", get_state_as_dict(xColSpin)["Text"]) + self.assertEqual("2", get_state_as_dict(xRowSpin)["Text"]) tables = document.getTextTables() - self.assertEqual(600, len(tables[0].getRows())) - self.assertEqual(40, len(tables[0].getColumns())) + self.assertEqual(2, len(tables[0].getRows())) + self.assertEqual(2, len(tables[0].getColumns())) # Without the fix in place, this test would have failed to save the document with self.ui_test.execute_dialog_through_command('.uno:SaveAs', close_button="open") as xDialog: @@ -50,7 +50,7 @@ class tdf170554(UITestCase): with self.ui_test.load_file(systemPathToFileUrl(xFilePath)) as document2: tables = document2.getTextTables() - self.assertEqual(600, len(tables[0].getRows())) - self.assertEqual(40, len(tables[0].getColumns())) + self.assertEqual(2, len(tables[0].getRows())) + self.assertEqual(2, len(tables[0].getColumns())) # vim: set shiftwidth=4 softtabstop=4 expandtab:
