summaryrefslogtreecommitdiff
path: root/sw/qa/uitest/chapterNumbering/tdf123547.py
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2021-06-23 16:16:58 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2021-06-27 21:45:32 +0200
commiteef1a5f3aa0f1b11024aa6760cf92181b9bf0a96 (patch)
treed4e46ce25ba5214a6e5820712c84e55035e8874e /sw/qa/uitest/chapterNumbering/tdf123547.py
parent241c37a6ad2a444ddf2eb48385041318d4e7e8ee (diff)
uitest: remove duplicated calls to get_component()
after 8298aa62726312eee6f8fbb64a9fc9b12680447f < uitest: guard execute_blocking_action > Change-Id: I954c11c42620660afd48a585f5c59ff2196f4b6a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117738 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa/uitest/chapterNumbering/tdf123547.py')
-rw-r--r--sw/qa/uitest/chapterNumbering/tdf123547.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/qa/uitest/chapterNumbering/tdf123547.py b/sw/qa/uitest/chapterNumbering/tdf123547.py
index 135db13fe927..a9b97d1be9f4 100644
--- a/sw/qa/uitest/chapterNumbering/tdf123547.py
+++ b/sw/qa/uitest/chapterNumbering/tdf123547.py
@@ -13,7 +13,6 @@ from uitest.uihelper.common import select_pos
class tdf123547(UITestCase):
def test_tdf123547_numbering_dialog_crash(self):
with self.ui_test.load_file(get_url_for_data_file("tdf123547.docx")) as writer_doc:
- document = self.ui_test.get_component()
xWriterDoc = self.xUITest.getTopFocusWindow()
self.ui_test.execute_dialog_through_command(".uno:ChapterNumberingDialog")
@@ -23,6 +22,6 @@ class tdf123547(UITestCase):
xokbtn = xDialog.getChild("ok")
self.ui_test.close_dialog_through_button(xokbtn)
#verify we didn't crash
- self.assertEqual(document.CurrentController.PageCount, 1)
+ self.assertEqual(writer_doc.CurrentController.PageCount, 1)
# vim: set shiftwidth=4 softtabstop=4 expandtab: