mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
Test the RAW workflow through the Batch opener
This commit is contained in:
1 parent
5118ce591b
commit
8a040ae36d
1 file changed
+3
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user