summaryrefslogtreecommitdiff
path: root/sw/qa/uitest
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2021-12-09 20:22:07 -0900
committerJim Raykowski <raykowj@gmail.com>2021-12-14 01:32:37 +0100
commit9e046e43fc6d3fecd193da076c0871a458ba71dd (patch)
tree421be92af6ab537b64516b5d35a838680fbd20dd /sw/qa/uitest
parent98c3dd1b7147ea9c235a65c276e9005290fe108b (diff)
tdf#134960 List drawing objects in order of appearance in document
in Writer Navigator drawing objects content type member list Current code seems like it should work but GetFrameOfModified doesn't provide layout position for drawing objects like it does for table and frame objects. This patch gets position of drawing object in document directly from SdrObject. Change-Id: I501757900f265370d8e3b606cb4b3a81464e73f0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126627 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Diffstat (limited to 'sw/qa/uitest')
-rw-r--r--sw/qa/uitest/navigator/tdf140661.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/qa/uitest/navigator/tdf140661.py b/sw/qa/uitest/navigator/tdf140661.py
index 258dd5e5ee63..d6c79eb2a00b 100644
--- a/sw/qa/uitest/navigator/tdf140661.py
+++ b/sw/qa/uitest/navigator/tdf140661.py
@@ -34,8 +34,11 @@ class tdf140661(UITestCase):
self.assertEqual('DrawObject1', get_state_as_dict(xDrawings.getChild('0'))['Text'])
else:
self.assertEqual(12, len(xDrawings.getChildren()))
+
+ # tdf#134960
+ expectedShapeOrder = [1, 2, 8, 9, 7, 10, 11, 3, 12, 4, 5, 6]
for i in range(12):
- self.assertEqual('Shape' + str(i + 1), get_state_as_dict(xDrawings.getChild(str(i)))['Text'])
+ self.assertEqual('Shape' + str(expectedShapeOrder[i]), get_state_as_dict(xDrawings.getChild(str(i)))['Text'])
xDrawings.executeAction("COLLAPSE", tuple())