nigig-org/crates/apps/pdf/pdf-graphics/tests/golden
andodeki 1740da3f34
Some checks failed
repo hygiene / hygiene (push) Has been cancelled
PDF engine / engine (push) Has been cancelled
PDF engine / makepad-integration (push) Has been cancelled
PDF engine / fuzz (push) Has been cancelled
feat(pdf): render a form XObject to pixels — the golden caught what the
assertions missed

`Rasteriser::register_xobject` takes a form's recorded commands from a
caller that can resolve the page dictionary, so Phase 7's last golden-corpus
criterion is met with pixels instead of with a request recorded by name.

The first golden of that page showed the form drawn at the **page origin**,
ignoring the `1 0 0 1 20 20 cm` that placed it. The recorded commands'
`SetTransform`s are absolute in form space, and replaying them overwrote the
page's CTM rather than composing with it. Nested lists now compose against
the CTM in force at the `Do`.

The colour assertions written next to that golden all passed while the bug
was live — a red square two pixels from where it belongs is still a red
square somewhere. That is the argument for pixel goldens in one sentence,
and it is why the golden is compared after the assertions and not instead
of them. The offset now has its own assertion too.

The new fixture's form deliberately overflows its own /BBox, so the clip is
visible in the golden as an absence rather than being taken on trust.

Phase 7's golden-corpus exit criterion is now met in full. The `ui.rs` smoke
tests remain blocked on the Makepad headless backend, as they have been
since Phase 1, and are still not claimed as done.

1426 tests pass.
2026-08-18 20:06:50 +00:00
..
blend_multiply.pixels.txt feat(pdf): compositing and overprint — the blend maths had no backdrop 2026-08-18 19:25:15 +00:00
blend_normal.pixels.txt feat(pdf): compositing and overprint — the blend maths had no backdrop 2026-08-18 19:25:15 +00:00
colors.txt feat(pdf): real colour spaces, ICC profiles and PDF functions 2026-07-28 20:48:55 +00:00
dash_stroke.txt feat(pdf): complete Phase 2 render pipeline with golden tests 2026-07-27 15:55:53 +00:00
fill_rules.txt feat(pdf): complete Phase 2 render pipeline with golden tests 2026-07-27 15:55:53 +00:00
inline_image.txt feat(pdf): complete Phase 2 render pipeline with golden tests 2026-07-27 15:55:53 +00:00
overprint_off.pixels.txt feat(pdf): compositing and overprint — the blend maths had no backdrop 2026-08-18 19:25:15 +00:00
overprint_on.pixels.txt feat(pdf): compositing and overprint — the blend maths had no backdrop 2026-08-18 19:25:15 +00:00
shading_axial.pixels.txt feat(pdf): compositing and overprint — the blend maths had no backdrop 2026-08-18 19:25:15 +00:00
shading_mesh.pixels.txt feat(pdf): compositing and overprint — the blend maths had no backdrop 2026-08-18 19:25:15 +00:00
shading_radial.pixels.txt feat(pdf): compositing and overprint — the blend maths had no backdrop 2026-08-18 19:25:15 +00:00
text_kerning.txt feat(pdf): complete Phase 2 render pipeline with golden tests 2026-07-27 15:55:53 +00:00
text_line_ops.txt fix(pdf): repair the tree a hand-resolved merge left red 2026-08-16 20:09:48 +00:00
text_run.txt feat(pdf): complete Phase 2 render pipeline with golden tests 2026-07-27 15:55:53 +00:00
vector_path.txt feat(pdf): complete Phase 2 render pipeline with golden tests 2026-07-27 15:55:53 +00:00
xobject.txt feat(pdf): complete Phase 2 render pipeline with golden tests 2026-07-27 15:55:53 +00:00
xobject_form.pixels.txt feat(pdf): render a form XObject to pixels — the golden caught what the 2026-08-18 20:06:50 +00:00