DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
rustfmt
moppeeerf56aa76ada74
diff --git a/crates/ui-egui/src/panels/properties/tests.rs b/crates/ui-egui/src/panels/properties/tests.rsindex 74fd68ba7..d8b965fb5 100644--- a/crates/ui-egui/src/panels/properties/tests.rs+++ b/crates/ui-egui/src/panels/properties/tests.rs@@ -655,21 +655,21 @@ fn panel(app: DesignApp) -> Harness<'static, DesignApp> {h}- /// The course's chapter 21: Properties › Bullets and Numbering › Options opens the Bullets- /// and Numbering dialog, as InDesign's, not the Paragraph panel.- #[test]- fn bullets_options_open_the_bullets_and_numbering_dialog() {- let mut app = DesignApp::new(designcraft_engine::Session::new(), crate::Services::default());- app.run("file.new", json!({})).unwrap();- let f = app.run("frame.create", json!({"rect": [72, 72, 300, 200], "content": "text", "text": "4 eggs"})).unwrap();- app.run("text.select", json!({"story": f["story"], "anchor": 0, "focus": 6})).unwrap();- let mut h = panel(app);- h.get_by_label("Options").click();- h.run_steps(3);- let d = h.state().ui.dialog.clone().expect("a dialog");- assert_eq!((d.id.as_str(), d.s("section").as_str()), ("paragraphLocal", "bullets"));- assert_ne!(h.state().ui.open_panel.as_deref(), Some("paragraph"));- }+/// The course's chapter 21: Properties › Bullets and Numbering › Options opens the Bullets+/// and Numbering dialog, as InDesign's, not the Paragraph panel.+#[test]+fn bullets_options_open_the_bullets_and_numbering_dialog() {+ let mut app = DesignApp::new(designcraft_engine::Session::new(), crate::Services::default());+ app.run("file.new", json!({})).unwrap();+ let f = app.run("frame.create", json!({"rect": [72, 72, 300, 200], "content": "text", "text": "4 eggs"})).unwrap();+ app.run("text.select", json!({"story": f["story"], "anchor": 0, "focus": 6})).unwrap();+ let mut h = panel(app);+ h.get_by_label("Options").click();+ h.run_steps(3);+ let d = h.state().ui.dialog.clone().expect("a dialog");+ assert_eq!((d.id.as_str(), d.s("section").as_str()), ("paragraphLocal", "bullets"));+ assert_ne!(h.state().ui.open_panel.as_deref(), Some("paragraph"));+}/// The course's chapter 21: Properties' Bulleted List button gives the selected paragraphs/// bullets with InDesign's hanging indent; pressed again, both go.