[Libreoffice-commits] dev-tools.git: uitest/mass-testing

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Apr 19 16:54:26 UTC 2019


 uitest/mass-testing/calc.py |   24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

New commits:
commit 64dedad18581fffc255e4fbd88bea6f837f5cf2c
Author:     Zdeněk Crhonek <zcrhonek at gmail.com>
AuthorDate: Fri Apr 19 17:09:59 2019 +0200
Commit:     Xisco Faulí <xiscofauli at libreoffice.org>
CommitDate: Fri Apr 19 18:54:07 2019 +0200

    mass-uitesting: Add more Calc tests
    
    Change-Id: Ie33c78ccc8444b5afda825a62471554355143b18
    Reviewed-on: https://gerrit.libreoffice.org/70985
    Reviewed-by: Xisco Faulí <xiscofauli at libreoffice.org>
    Tested-by: Xisco Faulí <xiscofauli at libreoffice.org>

diff --git a/uitest/mass-testing/calc.py b/uitest/mass-testing/calc.py
index 14383a9..7aaa190 100755
--- a/uitest/mass-testing/calc.py
+++ b/uitest/mass-testing/calc.py
@@ -82,4 +82,28 @@ class massTesting(UITestCase):
 
         self.ui_test.close_doc()
 
+    def test_print_preview(self):
+        xEdit = self.load_file()
+        if xEdit:
+            self.xUITest.executeCommand(".uno:PrintPreview")  #open print preview
+            self.xUITest.executeCommand(".uno:ClosePreview")  # close print preview
+
+        self.ui_test.close_doc()
+
+    def test_hide_column_and_undo(self):
+        xEdit = self.load_file()
+        if xEdit:
+            self.xUITest.executeCommand(".uno:HideColumn")
+            self.xUITest.executeCommand(".uno:Undo")
+
+        self.ui_test.close_doc()
+
+    def test_hide_row_and_undo(self):
+        xEdit = self.load_file()
+        if xEdit:
+            self.xUITest.executeCommand(".uno:HideRow")
+            self.xUITest.executeCommand(".uno:Undo")
+
+        self.ui_test.close_doc()
+
 # vim: set shiftwidth=4 softtabstop=4 expandtab:


More information about the Libreoffice-commits mailing list