authorgravatar for git@paperclover.netclover caruso <git@paperclover.net> 2026-09-10 23:05:38-07:00
committergravatar for git@paperclover.netclover caruso <git@paperclover.net> 2026-09-10 23:05:38-07:00
loga12631917f7c136f8549fd670561c6face5fe85a
tree3d36e98bf151cc3455a618524aa3e35054be4489
parent9ec3d92ecff734adff8d8e5c37122994a422b96a
signature Signed by SSH key SHA256:52mNGHRsVFBDED9IAX5pe+LRWUefqTbxEReunq21QvU

fix: read native wrap reservations from the layout in the outline test

Layout.reserved_width now carries property 0x14001cdb, so the tree-control comparison reads it there instead of the retained-field arena. Assisted-by: claude-fable-5.1

1 files changed, 3 insertions(+), 6 deletions(-)

tools/test_outline_edit.py+3-6
......@@ -3,7 +3,6 @@ import json
33from pathlib import Path
44import runpy
55import shutil
6import struct
76import subprocess
87from tempfile import TemporaryDirectory
98import unittest
......@@ -188,11 +187,9 @@ class OutlineEditTest(unittest.TestCase):
188187 else:
189188 self.fail(name)
190189 if case['shape'] not in ('cell', 'cell-only'):
191 reservation = actual[outline]['extra'][0][-1]
192 self.assertEqual(reservation['id'], 0x14001cdb)
193 width, = struct.unpack('<f', bytes.fromhex(reservation['value']['Bytes']))
194 self.assertAlmostEqual(width * 36, 423.75, places=3)
195 expected[outline]['extra'][0].append(reservation)
190 reservation = actual[outline]['layout']['reserved_width']
191 self.assertAlmostEqual(reservation, 423.75, places=3)
192 expected[outline]['layout']['reserved_width'] = reservation
196193 self.assertEqual(actual.keys(), expected.keys())
197194 for oid, node in expected.items():
198195 self.preserved_node(node, actual[oid])