summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2022-05-25 13:51:59 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2022-05-26 10:39:21 +0200
commit74c3fe7017ca1eecba1b8524ff8234b6c63b0fd0 (patch)
treec0fe9dfcc7451d2511a1578251d1ff4026001b2b
parente203e20e5d64408bc5fbcbba6866343f9198baeb (diff)
mass-testing: Add tests for the sidebar
In order to find bugs like tdf#149268 Change-Id: I799fcfc4bc6ac92126d97ceab747187ac5065bf2
-rwxr-xr-xuitest/mass-testing/calc.py11
-rwxr-xr-xuitest/mass-testing/impress.py11
-rwxr-xr-xuitest/mass-testing/writer.py12
3 files changed, 34 insertions, 0 deletions
diff --git a/uitest/mass-testing/calc.py b/uitest/mass-testing/calc.py
index 6b9c5c5a..580a99a5 100755
--- a/uitest/mass-testing/calc.py
+++ b/uitest/mass-testing/calc.py
@@ -212,4 +212,15 @@ class massTesting(UITestCase):
self.xUITest.executeCommand(".uno:JumpToNextTable")
+ def test_sidebar(self):
+ with self.load_file() as xEdit:
+ self.xUITest.executeCommand(".uno:Sidebar")
+
+ panels = [ "TextPropertyPanel", "StyleListPanel", "GalleryPanel", "ScNavigatorPanel", "ScFunctionsPanel" ]
+
+ for panel in panels:
+ xEdit.executeAction("SIDEBAR", mkPropertyValues({"PANEL": panel}))
+
+ self.xUITest.executeCommand(".uno:Sidebar")
+
# vim: set shiftwidth=4 softtabstop=4 expandtab:
diff --git a/uitest/mass-testing/impress.py b/uitest/mass-testing/impress.py
index 7ffc3dec..a885d0a7 100755
--- a/uitest/mass-testing/impress.py
+++ b/uitest/mass-testing/impress.py
@@ -93,4 +93,15 @@ class massTesting(UITestCase):
self.xUITest.executeCommand(".uno:Undo")
+ def test_sidebar(self):
+ with self.load_file() as xEdit:
+ # The sidebar is already displayed
+
+ panels = [ "TextPropertyPanel", "StyleListPanel", "GalleryPanel",
+ "SdNavigatorPanel", "DefaultShapesPanel", "SdSlideTransitionPanel",
+ "SdCustomAnimationPanel", "SdAllMasterPagesPanel" ]
+
+ for panel in panels:
+ xEdit.executeAction("SIDEBAR", mkPropertyValues({"PANEL": panel}))
+
# vim: set shiftwidth=4 softtabstop=4 expandtab:
diff --git a/uitest/mass-testing/writer.py b/uitest/mass-testing/writer.py
index 3d84770b..83ead784 100755
--- a/uitest/mass-testing/writer.py
+++ b/uitest/mass-testing/writer.py
@@ -86,4 +86,16 @@ class massTesting(UITestCase):
for i in range(pageCount):
xEdit.executeAction("TYPE", mkPropertyValues({"KEYCODE":"PAGEUP"}))
+ def test_sidebar(self):
+ with self.load_file() as xEdit:
+ self.xUITest.executeCommand(".uno:Sidebar")
+
+ panels = [ "TextPropertyPanel", "StyleListPanel", "GalleryPanel",
+ "SwNavigatorPanel", "PageFormatPanel", "InspectorTextPanel", "SwManageChangesPanel" ]
+
+ for panel in panels:
+ xEdit.executeAction("SIDEBAR", mkPropertyValues({"PANEL": panel}))
+
+ self.xUITest.executeCommand(".uno:Sidebar")
+
# vim: set shiftwidth=4 softtabstop=4 expandtab: