[Libreoffice-commits] core.git: sw/qa
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Wed Dec 23 17:50:40 UTC 2020
sw/qa/uitest/writer_tests4/insertBreakDialog.py | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
New commits:
commit 5edafb22331b7dbd2225be56a91bb2918471de68
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Wed Dec 23 10:29:34 2020 +0100
Commit: Xisco Fauli <xiscofauli at libreoffice.org>
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 <xiscofauli at libreoffice.org>
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):
More information about the Libreoffice-commits
mailing list