Respect mask creation clearing the selection in the control test

This commit is contained in:
yoriswind committed 2026-11-01 13:15:34 -08:00
1 parent 0aac40105e
commit 0ae7356064
1 file changed
+1 -1
@@ -423,7 +423,7 @@ fn group_transparency_sources_fail_without_changing_selection() {
// The group's explicit mask remains a valid source.
s.execute("layer.layerMask.revealSelection", json!({"layer":group.0})).unwrap();
s.execute("select.deselect", json!({})).unwrap();
assert!(s.active().unwrap().doc.selection.is_none());
s.execute("select.loadSelection", json!({"channel":"mask","layer":params["layer"]})).unwrap();
assert_eq!(s.active().unwrap().doc.selection.as_ref().unwrap().read_region(Rect::from_xywh(0, 0, 2, 1)), vec![1.0, 0.0]);
}