From 8a88f898313a01a8408a2e66b62b66899bb9faac Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Tue, 9 Jun 2020 11:07:31 +0200 Subject: tdf#133169: sw: Add UItest Change-Id: I6d86e8f8ef1b1ffe32e45c7ead75387f6fcee2fa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95901 Tested-by: Jenkins Reviewed-by: Xisco Fauli --- sw/qa/uitest/writer_tests7/tdf131963.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sw/qa') 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: -- cgit