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...@@ -3,7 +3,6 @@ import json
3from pathlib import Path3from pathlib import Path
4import runpy4import runpy
5import shutil5import shutil
6import struct
7import subprocess6import subprocess
8from tempfile import TemporaryDirectory7from tempfile import TemporaryDirectory
9import unittest8import unittest
...@@ -188,11 +187,9 @@ class OutlineEditTest(unittest.TestCase):...@@ -188,11 +187,9 @@ class OutlineEditTest(unittest.TestCase):
188 else:187 else:
189 self.fail(name)188 self.fail(name)
190 if case['shape'] not in ('cell', 'cell-only'):189 if case['shape'] not in ('cell', 'cell-only'):
191 reservation = actual[outline]['extra'][0][-1]190 reservation = actual[outline]['layout']['reserved_width']
192 self.assertEqual(reservation['id'], 0x14001cdb)191 self.assertAlmostEqual(reservation, 423.75, places=3)
193 width, = struct.unpack('<f', bytes.fromhex(reservation['value']['Bytes']))192 expected[outline]['layout']['reserved_width'] = reservation
194 self.assertAlmostEqual(width * 36, 423.75, places=3)
195 expected[outline]['extra'][0].append(reservation)
196 self.assertEqual(actual.keys(), expected.keys())193 self.assertEqual(actual.keys(), expected.keys())
197 for oid, node in expected.items():194 for oid, node in expected.items():
198 self.preserved_node(node, actual[oid])195 self.preserved_node(node, actual[oid])