From 02d877d0436e7c0fa341b22e13448f8a7432f0d8 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Mon, 9 Nov 2026 02:54:32 +0700 Subject: [PATCH] .ai import: the unread-PDF-part test expects the cut-short note for its large image --- crates/engine/src/cmd/fileio/tests_aiimport.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/engine/src/cmd/fileio/tests_aiimport.rs b/crates/engine/src/cmd/fileio/tests_aiimport.rs index 26e6bbc3d..8c1722a60 100644 --- a/crates/engine/src/cmd/fileio/tests_aiimport.rs +++ b/crates/engine/src/cmd/fileio/tests_aiimport.rs @@ -720,7 +720,7 @@ fn a_file_whose_pdf_part_cant_be_read_outlines_its_type_when_asked() { assert!(paths > 0, "the outlines are there: {r}"); } -/// An image too large to read from the editing data of a file whose PDF part can't be read is +/// An image whose data is cut short in the editing data of a file whose PDF part can't be read is /// left out, and both notes say so. #[test] fn a_file_whose_pdf_part_cant_be_read_notes_an_image_left_out() { @@ -729,7 +729,7 @@ fn a_file_whose_pdf_part_cant_be_read_notes_an_image_left_out() { let mut s = Session::new(); let e = open(&mut s, name, &file, json!({"editingData": false})).unwrap_err().to_string(); let r = open(&mut s, name, &file, json!({})).unwrap(); - assert_eq!(r["warnings"], json!([unread_pdf_part(&e), "an image too large to read from the editing data was left out"]), "{r}"); + assert_eq!(r["warnings"], json!([unread_pdf_part(&e), "an image whose data is cut short was left out"]), "{r}"); } /// A copied file whose PDF part can't be read pastes the objects of its editing data when asked