[Libreoffice-commits] core.git: sc/qa
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Wed May 5 14:26:42 UTC 2021
sc/qa/uitest/calc_tests8/navigator.py | 22 ++++++++++++++++++++++
sc/qa/uitest/data/tdf141973.ods |binary
2 files changed, 22 insertions(+)
New commits:
commit c6d0986acb50941d30257cb497466066badfcaa1
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Wed May 5 10:50:59 2021 +0200
Commit: Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Wed May 5 16:25:51 2021 +0200
tdf#141973: sc: Add UItest
Change-Id: I06d8da1e2336a93cbd974b817afa21f830bd2ff7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115125
Tested-by: Xisco Fauli <xiscofauli at libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>
diff --git a/sc/qa/uitest/calc_tests8/navigator.py b/sc/qa/uitest/calc_tests8/navigator.py
index 1589e45f4763..46ce7d9673cf 100644
--- a/sc/qa/uitest/calc_tests8/navigator.py
+++ b/sc/qa/uitest/calc_tests8/navigator.py
@@ -150,3 +150,25 @@ class navigator(UITestCase):
self.xUITest.executeCommand(".uno:Sidebar")
self.ui_test.close_doc()
+
+ def test_tdf141973(self):
+ self.ui_test.load_file(get_url_for_data_file("tdf141973.ods"))
+ xCalcDoc = self.xUITest.getTopFocusWindow()
+ xGridWin = xCalcDoc.getChild("grid_window")
+
+ self.xUITest.executeCommand(".uno:Sidebar")
+
+ # Without the fix in place, this test would have crashed here
+ xGridWin.executeAction("SIDEBAR", mkPropertyValues({"PANEL": "ScNavigatorPanel"}))
+
+ xCalcDoc = self.xUITest.getTopFocusWindow()
+ xNavigatorPanel = xCalcDoc.getChild("NavigatorPanel")
+ xContentBox = xNavigatorPanel.getChild('contentbox')
+ xDrawings = xContentBox.getChild("7")
+ self.assertEqual('Drawing objects', get_state_as_dict(xDrawings)['Text'])
+ self.assertEqual(len(xDrawings.getChildren()), 1)
+ self.assertEqual('withname', get_state_as_dict(xDrawings.getChild('0'))['Text'])
+
+ self.xUITest.executeCommand(".uno:Sidebar")
+
+ self.ui_test.close_doc()
diff --git a/sc/qa/uitest/data/tdf141973.ods b/sc/qa/uitest/data/tdf141973.ods
new file mode 100644
index 000000000000..00885cf954dd
Binary files /dev/null and b/sc/qa/uitest/data/tdf141973.ods differ
More information about the Libreoffice-commits
mailing list