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.
This commit is contained in:
dotCooCoo committed 2026-11-12 18:34:42 -08:00
1 parent df155042d4
commit 6a14e086de
1 file changed
+1 -1
@@ -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());