From fcec08e1bbe3044b1fa11d6d6c8603504f9129be Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Thu, 12 Nov 2026 15:41:23 -0800 Subject: [PATCH] Document Info: the clear-paint test expects Gradient Objects to skip clear gradients Gradient Objects now leaves out fills and strokes at an opacity of 0, so the test expects no gradient count once every fill and stroke of the spot gradient object is clear. --- crates/engine/src/cmd/docinfo.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/engine/src/cmd/docinfo.rs b/crates/engine/src/cmd/docinfo.rs index a5a0261610..c548c3d85a 100644 --- a/crates/engine/src/cmd/docinfo.rs +++ b/crates/engine/src/cmd/docinfo.rs @@ -1380,7 +1380,7 @@ mod tests { /// Spot Color Objects leaves out a fill or stroke at an opacity of 0, which prints no ink, and /// keeps the object while another of its fills or strokes prints the spot color. Gradient - /// Objects still lists a clear gradient fill. + /// Objects leaves out a clear gradient fill as well. #[test] fn spot_color_objects_skip_clear_fills_and_strokes() { let mut s = Session::new(); @@ -1412,7 +1412,7 @@ mod tests { s.execute("appearance.setItem", &json!({"index": index, "opacity": 0})).unwrap(); } } - assert_eq!(spots(&mut s), (vec![], None, Some(1))); + assert_eq!(spots(&mut s), (vec![], None, None)); } /// Document Info › Objects counts an object with a gradient or a pattern on both its fill and