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 /svx | |
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 'svx')
-rw-r--r-- | svx/qa/uitest/table/tablecontroller.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/svx/qa/uitest/table/tablecontroller.py b/svx/qa/uitest/table/tablecontroller.py index 26390cb5c963..e523ae055d9b 100644 --- a/svx/qa/uitest/table/tablecontroller.py +++ b/svx/qa/uitest/table/tablecontroller.py @@ -30,8 +30,7 @@ class SvxTableControllerTest(UITestCase): shadowCheckbox.executeAction("CLICK", tuple()) # Check if the shadow was enabled. - drawPage = component.getDrawPages().getByIndex(0) - shape = drawPage.getByIndex(0) + shape = component.getDrawPages()[0][0] # Without the accompanying fix in place, this test would have failed with: # AssertionError: False != True # i.e. the table still had no shadow. |