From 8a040ae36d0cf79c59c3fcb185159fb09b9809e5 Mon Sep 17 00:00:00 2001 From: yoriswind Date: Mon, 30 Nov 2026 16:55:41 -0800 Subject: [PATCH] Test the RAW workflow through the Batch opener --- .../engine-core/src/prefs/raw_defaults_space_default_tests.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/engine-core/src/prefs/raw_defaults_space_default_tests.rs b/crates/engine-core/src/prefs/raw_defaults_space_default_tests.rs index 074bc5958a..35fcbb9c57 100644 --- a/crates/engine-core/src/prefs/raw_defaults_space_default_tests.rs +++ b/crates/engine-core/src/prefs/raw_defaults_space_default_tests.rs @@ -31,10 +31,12 @@ fn saved_raw_color_spaces_load_unchanged() { } #[test] -fn a_raw_opens_with_the_factory_display_p3_profile() { +fn batch_raw_opens_with_the_factory_display_p3_profile() { let (width, height) = (24, 16); let raw = DngSpec::cfa(width, height, mosaic(&scene(width, height), width, [0, 1, 1, 2], 0, 65535)).build(); let mut s = crate::session(); + // Batch passes the RAW workflow defaults to the scratch session before opening each input. + s.batch_raw_open = Some(s.prefs().raw_defaults.clone()); crate::file_cmds::open_bytes_as(&mut s, "IMG_0001.dng", &raw, None, None).unwrap(); let doc = &s.active().unwrap().doc;