mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
Respect mask creation clearing the selection in the control test
This commit is contained in:
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]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user