From 6a14e086de5edcc36d603efc5362d337fe92fd39 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Thu, 12 Nov 2026 18:34:42 -0800 Subject: [PATCH] Tests: the legacy .ai Color Mask test reads the notes on the options Saving with transparentImages "omit" now reports its note in the notes on the options rather than in the warnings, so the test compares every note the export gives. --- crates/engine/src/cmd/addons/image/mask/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/engine/src/cmd/addons/image/mask/tests.rs b/crates/engine/src/cmd/addons/image/mask/tests.rs index 9faef84edb..b9b56a5e4a 100644 --- a/crates/engine/src/cmd/addons/image/mask/tests.rs +++ b/crates/engine/src/cmd/addons/image/mask/tests.rs @@ -765,7 +765,7 @@ fn pdf_x1a_and_x3_flatten_the_hidden_pixels() { /// image whose background was removed, and `transparentImages: "omit"` leaves both out. #[test] fn legacy_ai_flattens_a_masked_image_as_a_see_through_one() { - let warnings = |s: &Session, p: &Value| crate::cmd::fileio::encode_all(doc(s), "ai", p).unwrap().warnings; + let warnings = |s: &Session, p: &Value| crate::cmd::fileio::encode_all(doc(s), "ai", p).unwrap().notes(); let (mut masked, _) = open(&framed()); masked.execute(COLOR_MASK, &hide_white()).unwrap(); let (mut cleared, _) = open(&framed());