diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-12-23 10:29:34 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-12-23 18:49:54 +0100 |
commit | 5edafb22331b7dbd2225be56a91bb2918471de68 (patch) | |
tree | 90868380dff09c811996d85f2cc41f759063d1b3 /sw | |
parent | b36a40a809206a57160108b3361f42420f619c2e (diff) |
uitest: simplify assert
Change-Id: I8a511df34cd52ebc7b2535ef6977e42b3d4d04f7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108232
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/uitest/writer_tests4/insertBreakDialog.py | 5 |
1 files changed, 1 insertions, 4 deletions
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): |