Skip to content

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

test(atn): use a named layer target in the carried Layer Properties case

Finn Newick75626fb0649a
diff --git a/crates/engine/src/atn_cmds/tests.rs b/crates/engine/src/atn_cmds/tests.rs
index 7a4e7ec57..41c2a5f6e 100644
--- a/crates/engine/src/atn_cmds/tests.rs
+++ b/crates/engine/src/atn_cmds/tests.rs
@@ -1092,7 +1092,8 @@ fn options_the_descriptors_cannot_carry_refuse_strict_export() {
("file.new", json!({"width": 24, "height": 18, "background": "transparent"})),
("file.new", json!({"width": 24, "height": 18, "background": "backgroundColor"})),
("select.loadSelection", json!({"channel": "Alpha 1", "invert": false, "operation": "new"})),
- ("layer.setProps", json!({"layer": 2, "opacity": 0.5, "visible": true})),
+ // A named target (a numeric one is #7248, #7262).
+ ("layer.setProps", json!({"layer": "Pixels", "opacity": 0.5, "visible": true})),
("filter.noise.addNoise", json!({"amount": 30, "seed": 2147483647})),
];
for (id, p) in carried {