Skip to content

PhotoCraft: An open-source, photo editor written by scratch in pure Rust

Remove feature changes from contributor credit PR

Abdul karim mia007581b7a46a
diff --git a/crates/engine/src/atn_cmds/tests.rs b/crates/engine/src/atn_cmds/tests.rs
index b5c3a9e54..bdb839fa3 100644
--- a/crates/engine/src/atn_cmds/tests.rs
+++ b/crates/engine/src/atn_cmds/tests.rs
@@ -212,12 +212,6 @@ fn every_mapped_command_exports_and_imports_back() {
("image.mode.grayscale", json!({})),
("image.mode.bits16", json!({})),
("layer.duplicate", json!({"name": "copy"})),
- // Duplicate into a new document is a `Mk`, not a `Dplc` (the three shapes of
- // a recorded Duplicate Layer with Destination: New, plus a named layer).
- ("layer.duplicate", json!({"document": "new"})),
- ("layer.duplicate", json!({"document": "new", "documentName": "test new name"})),
- ("layer.duplicate", json!({"document": "new", "name": "Laer name change"})),
- ("layer.duplicate", json!({"layer": "Shadow", "document": "new", "documentName": "Doc"})),
("image.duplicate", json!({"mergedOnly": true})),
("layer.new.layer", json!({"name": "Ink", "opacity": 0.5, "mode": "Multiply"})),
("layer.new.group", json!({"name": "G"})),
@@ -454,13 +448,6 @@ fn unsupported_shapes_become_photoshop_steps_not_errors() {
Some(desc("null").with("null", class_ref("AdjL")).with("Usng", D::Descriptor(desc("AdjL").with("Type", D::Descriptor(desc("GdMp")))))),
),
item("GsnB", "Gaussian Blur", None),
- // Duplicate into another open document: the `T` reference means nothing at
- // replay, so the step is kept verbatim instead of misplayed as a same-doc copy.
- item(
- "Dplc",
- "Duplicate",
- Some(desc("null").with("null", target_ref("Lyr ")).with("T ", D::Reference(vec![ReferenceItem::Name { class: class("Dcmn"), name: UnicodeString::new_nul("Other") }]))),
- ),
];
let file = AtnFile {
name: UnicodeString::new_nul("Odd"),
@@ -470,8 +457,8 @@ fn unsupported_shapes_become_photoshop_steps_not_errors() {
};
let imp = import(&atn::write(&file).unwrap()).unwrap();
let ids: Vec<&str> = imp.actions[0].steps.iter().map(|(id, _)| id.as_str()).collect();
- assert_eq!(ids, [PHOTOSHOP_STEP, PHOTOSHOP_STEP, PHOTOSHOP_STEP, PHOTOSHOP_STEP, "filter.blur.gaussianBlur", PHOTOSHOP_STEP]);
- assert_eq!(imp.unsupported.len(), 5);
+ assert_eq!(ids, [PHOTOSHOP_STEP, PHOTOSHOP_STEP, PHOTOSHOP_STEP, PHOTOSHOP_STEP, "filter.blur.gaussianBlur"]);
+ assert_eq!(imp.unsupported.len(), 4);
assert!(imp.actions[0].disabled.is_empty(), "steps with a document effect stay on so playback reports them");
}