Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ void chipMidLineKeepsTheTextOnBothSides() throws Exception {

@Test
void multiWordChipStaysOneSpanAndCollapsesNewlines() throws Exception {
// PR-1 invariant: a chip is one atomic token — a multi-word chip is a
// Invariant: a chip is one atomic token — a multi-word chip is a
// single span (not split per word), and an embedded newline collapses to
// a space (unlike a plain text run, which would split into lines).
List<ParagraphTextSpan> badge = textSpans(p -> p.inlineChip(" On hold ", DocumentColor.rgb(146, 64, 14), FILL));
Expand All @@ -151,7 +151,7 @@ void multiWordChipStaysOneSpanAndCollapsesNewlines() throws Exception {

@Test
void overWideAtomicChipRendersWithoutThrowing() throws Exception {
// A chip wider than the column is emitted on its own line (PR-1 atomic);
// A chip wider than the column is emitted on its own line (atomic);
// it must still render the text on one page without throwing.
byte[] pdf;
try (DocumentSession session = GraphCompose.document().pageSize(90, 140).margin(10, 10, 10, 10).create()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
* <p>Each preset renders a fixed canonical {@link CoverLetterSpec} on
* full A4 with the gallery-standard 48pt margin, the resulting PDF is
* rasterized via PDFBox, and the per-pixel diff against a checked-in
* baseline PNG is asserted to stay within the budget specified in
* {@code docs/private/templates-restructure-plan.md} sec 6.2 (2500
* mismatched pixels at per-channel tolerance 8). Re-run with
* baseline PNG is asserted to stay within the {@code PIXEL_DIFF_BUDGET}
* mismatched-pixel budget at {@code PER_PIXEL_TOLERANCE} per-channel
* colour tolerance. Re-run with
* {@code -Dgraphcompose.visual.approve=true} to refresh the baselines
* after a deliberate visual change.</p>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
* <p>Each preset renders a fixed canonical {@link CvSpec} on full A4
* with the preset's {@code RECOMMENDED_MARGIN}, the resulting PDF is
* rasterized via PDFBox, and the per-pixel diff against a checked-in
* baseline PNG is asserted to stay within the budget specified in
* {@code docs/private/templates-restructure-plan.md} sec 6.2 (2500
* mismatched pixels at per-channel tolerance 8). Re-run with
* baseline PNG is asserted to stay within the {@code PIXEL_DIFF_BUDGET}
* mismatched-pixel budget at {@code PER_PIXEL_TOLERANCE} per-channel
* colour tolerance. Re-run with
* {@code -Dgraphcompose.visual.approve=true} to refresh the baselines
* after a deliberate visual change.</p>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void bundledFontsVersionAgreesAcrossModules() throws Exception {
// the sibling module's source), so the ${graphcompose.fonts.version}
// property that pins the artifact lives only in the modules that consume
// it: the aggregator (inherited by examples + benchmarks) and the bundle.
// This guards the PR-7.1 drift class: those must always agree, even
// This guards the version-literal drift class: those must always agree, even
// though they differ from the engine version line.
String aggregator = fontsVersionProperty(PROJECT_ROOT.resolve("aggregator/pom.xml"));

Expand Down