test: propagate text layout engine specification test suite

Formalize the Asteria Qt text layout engine behavior and establish
comprehensive test coverage across all 94 Allium specification
obligations for two-phase layout, Knuth-Plass line breaking, and
reading session state management.

- Add `specs/text-layout-engine.allium` detailing layout lifecycle,
  generation monotonicity, viewport metrics, and contrast safety.
- Implement structural equality operators (`operator==`) across layout
  domain value types (`BoxStyle`, `InlineItem`, `BlockItem`,
  `ContentChunk`, `KnuthPlass::Item`, positioned line/run elements,
  and `BookPosition`) to enable deterministic assertion testing.
- Introduce `TextLayoutEngineSpecTest` verifying entity fields, value
  equality, enum comparability, contract signatures, config defaults,
  lifecycle state transitions, rules, and invariants.
- Register `TextLayoutEngineSpecTest` in `CMakeLists.txt` and update
  test inventory in `AGENTS.md`.
This commit is contained in:
Agel committed 2026-10-29 15:21:28 +01:00
1 parent 306d4cac5c
commit e64bf33f65
8 files changed
+1681

No files matched your search

+25
View File
@@ -276,6 +276,31 @@ src/
HistoryPage.qml
ReaderPage.qml
StarterPage.qml
tests/
AppStateTest.cpp
EntryImageProviderTest.cpp
FileIconProviderTest.cpp
FormatRegistryTest.cpp
HistoryModelTest.cpp
ReadingModelTest.cpp
book/
BookTest.cpp
formats/
CbzReaderTest.cpp
EpubReaderTest.cpp
FolderReaderTest.cpp
ImageUrlTest.cpp
WebImageProviderTest.cpp
reading/
ChunkLayoutEngineTest.cpp
CssParserTest.cpp
KnuthPlassTest.cpp
MangaPaginationTest.cpp
TextLayoutEngineSpecTest.cpp
state/
BookPositionStoreTest.cpp
ReadingPreferencesTest.cpp
UiStateTest.cpp
```
---