[Libreoffice-commits] core.git: sw/qa

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Tue Jun 9 16:29:56 UTC 2020


 sw/qa/uitest/writer_tests7/tdf131963.py |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 8a88f898313a01a8408a2e66b62b66899bb9faac
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Tue Jun 9 11:07:31 2020 +0200
Commit:     Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Tue Jun 9 18:29:22 2020 +0200

    tdf#133169: sw: Add UItest
    
    Change-Id: I6d86e8f8ef1b1ffe32e45c7ead75387f6fcee2fa
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95901
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>

diff --git a/sw/qa/uitest/writer_tests7/tdf131963.py b/sw/qa/uitest/writer_tests7/tdf131963.py
index 6039ab569fec..97cebcc4cedc 100644
--- a/sw/qa/uitest/writer_tests7/tdf131963.py
+++ b/sw/qa/uitest/writer_tests7/tdf131963.py
@@ -17,6 +17,9 @@ class tdf131963(UITestCase):
     def test_tdf131963(self):
         writer_doc = self.ui_test.load_file(get_url_for_data_file("tdf131963.docx"))
 
+        document = self.ui_test.get_component()
+        self.assertEqual(11, document.CurrentController.PageCount)
+
         self.xUITest.executeCommand(".uno:SelectAll")
         self.xUITest.executeCommand(".uno:Copy")
         self.ui_test.execute_dialog_through_command(".uno:PasteSpecial")
@@ -37,6 +40,9 @@ class tdf131963(UITestCase):
 
         # Without the fix in place, it would have crashed here
 
+        # tdf#133169: without the fix in place, it would have been 2 instead of 11
+        self.assertEqual(11, document.CurrentController.PageCount)
+
         self.ui_test.close_doc()
 
 # vim: set shiftwidth=4 softtabstop=4 expandtab:


More information about the Libreoffice-commits mailing list