summaryrefslogtreecommitdiff
path: root/sw/qa/uitest/writer_tests3/insertEndnote.py
diff options
context:
space:
mode:
authorMayank Suman <mayanksuman@live.com>2019-10-03 19:37:36 +0530
committerMichael Stahl <michael.stahl@cib.de>2019-10-24 14:23:45 +0200
commitd5dc19402e2b390aedd92ed94d0cd2444fd4478f (patch)
treef48f56a56d0a175161cc6a4ebf05f5881e4827bd /sw/qa/uitest/writer_tests3/insertEndnote.py
parentc1f60d7d113e29dd36c6dcf0d1b58cfd8912228a (diff)
tdf#97361: Removed getByIndex in calc and writer
Change-Id: I477e1129d7b8deb91920b3ffd715bc217e606d20 Reviewed-on: https://gerrit.libreoffice.org/80140 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'sw/qa/uitest/writer_tests3/insertEndnote.py')
-rw-r--r--sw/qa/uitest/writer_tests3/insertEndnote.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/qa/uitest/writer_tests3/insertEndnote.py b/sw/qa/uitest/writer_tests3/insertEndnote.py
index 4dec491781cf..705fce6cef54 100644
--- a/sw/qa/uitest/writer_tests3/insertEndnote.py
+++ b/sw/qa/uitest/writer_tests3/insertEndnote.py
@@ -22,17 +22,17 @@ class insertEndnote(UITestCase):
type_text(xWriterEdit, "LibreOffice")
- self.assertEqual(document.Endnotes.getByIndex(0).String, "LibreOffice")
+ self.assertEqual(document.Endnotes[0].String, "LibreOffice")
self.assertEqual(document.Endnotes.getCount(), 1)
self.xUITest.executeCommand(".uno:Undo")
- self.assertEqual(document.Endnotes.getByIndex(0).String, "")
+ self.assertEqual(document.Endnotes[0].String, "")
self.xUITest.executeCommand(".uno:Undo")
self.assertEqual(document.Endnotes.getCount(), 0)
self.xUITest.executeCommand(".uno:Redo")
- self.assertEqual(document.Endnotes.getByIndex(0).String, "")
+ self.assertEqual(document.Endnotes[0].String, "")
self.assertEqual(document.Endnotes.getCount(), 1)
self.xUITest.executeCommand(".uno:Redo")
- self.assertEqual(document.Endnotes.getByIndex(0).String, "LibreOffice")
+ self.assertEqual(document.Endnotes[0].String, "LibreOffice")
self.ui_test.close_doc()
# vim: set shiftwidth=4 softtabstop=4 expandtab: