test(reading): propagate Allium specification tests for Knuth-Plass rendering pipeline
Formalize the behavioral specification for off-thread Knuth-Plass text chunk layout and virtualized QML rendering in specs/knuth-plass-rendering.allium, and introduce a test suite covering all 66 specification obligations across value types, state machine transitions, invariants, and surface contracts. To satisfy the specification's precondition and invariant contracts: - Validate and clamp initial restore chunk bounds when opening documents in ReadingModel to ensure anchor chunks remain strictly within bounds. - Guard scroll position updates against negative and out-of-bounds chunk indices to honor the ScrollPositionChanged preconditions. - Emit positionSaved on publisher color toggles to fulfill the PositionPersisted contract without triggering unnecessary relayouts. - Register KnuthPlassRenderingSpecTest in CMakeLists.txt and document the spec and test hierarchy in AGENTS.md.
This commit is contained in:
5 files changed
+1717
-3
No files matched your search
Reference in new issue
Block a user