mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-27 16:59:43 +01:00
Cover switching away from an unfinished pattern rename
This commit is contained in:
1 parent
3bbd8b8691
commit
a3c6e29d9d
1 file changed
+6
@@ -302,5 +302,11 @@ mod tests {
|
||||
assert_eq!(panel.value("Name").as_deref(), Some("Dots"));
|
||||
panel.key(egui::Key::Enter, egui::Modifiers::NONE);
|
||||
assert!(panel.app().session.active().unwrap().doc.pattern("Dots").is_some());
|
||||
|
||||
panel.app().run("window.previousDocument", json!({})).unwrap();
|
||||
panel.frame();
|
||||
assert_eq!(panel.app().session.active().unwrap().uid, source);
|
||||
assert_eq!(panel.value("Name").as_deref(), Some("Dots"));
|
||||
assert!(panel.app().session.active().unwrap().doc.pattern("Dots").is_some());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user