diff options
author | Chenxiong Qi <qcxhome@gmail.com> | 2023-12-20 20:54:05 +0800 |
---|---|---|
committer | Hossein <hossein@libreoffice.org> | 2024-01-23 14:00:46 +0100 |
commit | 74de0ebb810f3e13c45f01c63067cb8de794ce3c (patch) | |
tree | b5f069ad74d12b5ce095b4ad9159861fd1445614 /sw/qa/uitest/table/tdf51352.py | |
parent | 3a20c691ab1d6a16ad0fc144926b22c098552be4 (diff) |
tdf#97361 Make unittests more pythonic: XIndexAccess
Change-Id: I05ef274dd0ad5dc35b5455cfc01feabc6c0820a3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161276
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'sw/qa/uitest/table/tdf51352.py')
-rw-r--r-- | sw/qa/uitest/table/tdf51352.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/qa/uitest/table/tdf51352.py b/sw/qa/uitest/table/tdf51352.py index 4a2fa79d5578..f8e741c19b25 100644 --- a/sw/qa/uitest/table/tdf51352.py +++ b/sw/qa/uitest/table/tdf51352.py @@ -32,15 +32,15 @@ class tdf51352(UITestCase): xWriterEdit.executeAction("TYPE", mkPropertyValues({"KEYCODE": "RIGHT"})) xWriterEdit.executeAction("TYPE", mkPropertyValues({"KEYCODE": "RIGHT"})) xWriterEdit.executeAction("TYPE", mkPropertyValues({"KEYCODE": "RIGHT"})) - self.assertEqual(document.TextTables.getCount(), 2) + self.assertEqual(len(document.TextTables), 2) #4. From menu "Table->Convert->Table to Text with self.ui_test.execute_dialog_through_command(".uno:ConvertTableToText"): pass - self.assertEqual(document.TextTables.getCount(), 0) + self.assertEqual(len(document.TextTables), 0) #5. Undo/Redo self.xUITest.executeCommand(".uno:Undo") - self.assertEqual(document.TextTables.getCount(), 2) + self.assertEqual(len(document.TextTables), 2) self.xUITest.executeCommand(".uno:Redo") - self.assertEqual(document.TextTables.getCount(), 0) + self.assertEqual(len(document.TextTables), 0) # vim: set shiftwidth=4 softtabstop=4 expandtab: |