mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-02 14:51:20 -05:00
c58415b307
Parse tests in the color crate looped over every id or label and parsed it back. Blend modes, policies, harmony rules, recolor methods and WCAG categories parse by looking the text up in that same table, so those loops could not fail. They now parse representative ids, labels and spellings, and the edge cases: "Color" next to "Color Burn", empty text, and a label where only ids parse. - default_swatches_parse read swatch.rs as text. It now checks the built swatches: no two solid swatches share a color (a bad hex literal falls back to black), and the Sunset and Ocean stops equal the swatches their literals name. - loads_system_cmyk_icc ran only on macOS and returned early without the system profile. loads_icc_files_and_refuses_bad_ones runs on every native target: a missing file is an I/O error naming the path, a file that is not a profile is refused, and a built-in profile's bytes are refused for their name. - the_other_libraries_keep_classic_mixing_and_centered_midpoints is removed: those libraries are built with Gradient::new's defaults. - pixel_timings and bench_catalog_lookup are removed. They were ignored and only printed timings. - Checks over lists that can be empty now also check the count: reverse and move keep every stop, a conic draws its 4 wedges, each harmony gives at least two colors, the fit leaves patches out, the wireframe draws edges, a flat warp keeps its anchors, a gradient stroke has slices, and fitted dashes on a curve are drawn. - the_effects_are_colour_adjustments_in_their_own_menu checks one add-on effect and one effect outside it instead of every entry.