mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-06 05:53:08 -05:00
Tests: check the shown selection is not empty before checking its members
This commit is contained in:
1 parent
dc65d03200
commit
8eacad4a69
1 file changed
+1
@@ -329,6 +329,7 @@ fn clearing_a_dialog_preview_uses_only_the_shown_base_objects() {
|
||||
let params = json!({});
|
||||
assert!(preview.run(&mut app, true, "Flood Fill Artboards", "addon.document.floodFillArtboards", ¶ms).unwrap().is_ok());
|
||||
preview.keep_outside_edits(&mut app);
|
||||
assert!(!app.session.active().unwrap().selection.objects.is_empty());
|
||||
assert!(app.session.active().unwrap().selection.objects.iter().all(|id| original.node(*id).is_none()));
|
||||
if include_base_object {
|
||||
app.session.active_mut().unwrap().selection.add(selected[0]);
|
||||
|
||||
Reference in new issue
Block a user