Skip to content

test: pin structure and artifact output to its ISO clauses - #761

Merged
Tim81 merged 7 commits into
mainfrom
test/conformance-audit-g3
Nov 29, 2026
Merged

Tim81 merged 7 commits into
mainfrom
test/conformance-audit-g3

Conversation

@Tim81

@Tim81 Tim81 commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

What

Group G3 of the v2.4 ISO audit: structure and artifacts. Test-only and docs-only; nothing under src/ changes.

  • ConformanceAuditG3Tests in tests/VellumPdf.Kernel.Tests (three test files, a reader and a fixtures file). It reads the structure tree, each page's marked-content sequences and the parent tree back with code of its own, and checks them against ISO 32000-1 14.6 to 14.8, ISO/TS 32005 Table 5, ISO 14289-1 clause 7 and ISO 19005-2 6.7. Fixtures cover a NoteBlock, a Preformatted block that splits over a page, headings and list items built from runs, a table of header rows only, a table with run cells, string and zoned bands with {chapter}, a logo and a rule, a 20,000-level structure tree, and the untagged claims.
  • The G3 section of docs/conformance-v2.4.md: 68 rows, 33 compliant, 19 gap, 7 not applicable, 9 human-only.

Results

344 cases per target framework, 331 pass and 13 are skipped gap tests whose reasons name their issue, on net10.0 and net11.0 in Release with oracles required (veraPDF 1.30.4, qpdf 12.4.2, poppler).

Mutations

Eight mutants of src (note-block box unmarked, ParentTreeNextKey one low, header cell as TD, zoned band unmarked, no Pg, Sect for Div, Code for P, Scope on a TD) each fail between 8 and 99 cases of the class.

Not in this PR

No fix to product code. Nested lists past level 2 (#483) and the accessibility issues (#550, #285, #303, #580) are named in the docs under "Not done".

Reads the structure tree, the marked content and the parent tree of tagged Layout files back with a reader of its own, and checks them against ISO 32000-1 14.6 to 14.8, ISO/TS 32005 Table 5, ISO 14289-1 clause 7 and ISO 19005-2 6.7. The known gaps are skipped tests that name their issue.
Adds the G3 section of the v2.4 conformance table: 66 clause rows for NoteBlock, Preformatted, Heading and ListItem from runs, header-only tables, cell runs, deep structure trees and running bands. Tests only; nothing under src changes.
Gap numbers #759 (Preformatted language) and #760 (empty tagged elements) go into the skip reasons and the G3 docs rows. The docs name no milestone for an issue.
Adds the Table 344 BBox gap (#587), the Marked gap on untagged files (#766), the first-heading gap (#767) and the link note (#745). Moves product-behaviour rows out of the clause table, adds the missing rows, corrects five sentences, reads the tree with pdfinfo -struct-text, and covers Scope on a TD in every fixture.
Milestones move: #550 is now in v2.4, so the row that said it was left
in v2.5 was false. The rows cite the issues only.
Four gaps now have issues from this audit (#759, #760, #766, #767). Drops an unsupported 14.6.3 claim, states the hyphen search exactly, restates the list-item row as a clause, makes the #767 and #587 skipped tests assert what those issues ask for, covers 2b in the #766 test and wraps the prose.
Matterhorn checkpoint 06 was marked compliant by reference to G5, but
G5 records gap #748 for a claim saved without a title, and a row with a
gap for one construct counts as a gap. The G3 counts become 33
compliant and 19 gap.
@Tim81
Tim81 merged commit b59d573 into main Nov 29, 2026
4 checks passed
@Tim81
Tim81 deleted the test/conformance-audit-g3 branch November 29, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant