diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-06-09 11:07:31 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-06-09 18:29:22 +0200 |
commit | 8a88f898313a01a8408a2e66b62b66899bb9faac (patch) | |
tree | 948153c87a71d5628dc2564bfb9bfdde54d292f5 /sw/qa | |
parent | a22cba07a470385dcb930c56c90cba81b317773e (diff) |
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@libreoffice.org>
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/uitest/writer_tests7/tdf131963.py | 6 |
1 files changed, 6 insertions, 0 deletions
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: |