sw/qa/uitest/writer_tests4/insertBreakDialog.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
New commits: commit 5edafb22331b7dbd2225be56a91bb2918471de68 Author: Xisco Fauli <[email protected]> AuthorDate: Wed Dec 23 10:29:34 2020 +0100 Commit: Xisco Fauli <[email protected]> CommitDate: Wed Dec 23 18:49:54 2020 +0100 uitest: simplify assert Change-Id: I8a511df34cd52ebc7b2535ef6977e42b3d4d04f7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108232 Tested-by: Jenkins Reviewed-by: Xisco Fauli <[email protected]> diff --git a/sw/qa/uitest/writer_tests4/insertBreakDialog.py b/sw/qa/uitest/writer_tests4/insertBreakDialog.py index 291ffdac53b4..6dda5b2fcf94 100644 --- a/sw/qa/uitest/writer_tests4/insertBreakDialog.py +++ b/sw/qa/uitest/writer_tests4/insertBreakDialog.py @@ -22,10 +22,7 @@ class WriterInsertBreakDialog(UITestCase): def getPages(self, total): document = self.ui_test.get_component() - xCursor = document.getCurrentController().getViewCursor() - xCursor.jumpToLastPage() - - self.assertEqual(xCursor.getPage(), total) + self.assertEqual(document.CurrentController.PageCount, total) def test_insert_line_break(self): _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
