Skip to content

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

Fix test-module attributes from prior insertion (dup #[test]; restore cut_clears)

Brandon Thomasa0eff2761911
diff --git a/crates/engine/src/edit_cmds.rs b/crates/engine/src/edit_cmds.rs
index 3a13ad564..253b81f7c 100644
--- a/crates/engine/src/edit_cmds.rs
+++ b/crates/engine/src/edit_cmds.rs
@@ -453,7 +453,6 @@ mod tests {
assert_eq!(s.active().unwrap().doc.layers.len(), 4);
}
- #[test]
#[test]
fn copy_paste_between_documents() {
// Copy in one tab, paste into another: the clipboard is shared across documents.
@@ -503,6 +502,7 @@ mod tests {
assert!((cb.width() as i32 - 80).abs() <= 3 && (cb.height() as i32 - 40).abs() <= 3, "size ~ 80x40: {cb:?}");
}
+ #[test]
fn cut_clears_and_layer_via_copy_cut() {
let mut s = session();
s.execute("select.rect", json!({"x": 10, "y": 10, "width": 10, "height": 20})).unwrap();