Skip to content

VectorCraft: An open-source, vector art tool written by scratch in pure Rust

Tests: put the Rearrange Artboards toggle test's comment back on it

bflatastice962197260df
diff --git a/crates/ui-egui/src/dialogs/rearrange_artboards.rs b/crates/ui-egui/src/dialogs/rearrange_artboards.rs
index 56218b249..6fa90910a 100644
--- a/crates/ui-egui/src/dialogs/rearrange_artboards.rs
+++ b/crates/ui-egui/src/dialogs/rearrange_artboards.rs
@@ -180,7 +180,7 @@ mod tests {
assert_eq!(app.session.doc().unwrap().history.undo.len(), undo + 1);
}
- /// Clicking the layout and order toggles sets the fields (the toggles' rects from the frame).
+ /// The spacing confirmed last is the one the dialog opens with next time (#4558).
#[test]
fn keeps_spacing_when_reopening_after_rearranging() {
let mut app = VectorcraftApp::new(Session::new(), Default::default());
@@ -193,6 +193,7 @@ mod tests {
assert_eq!(app.ui.dialog.as_ref().unwrap().f64("spacing", 20.0), 37.0);
}
+ /// Clicking the layout and order toggles sets the fields (the toggles' rects from the frame).
#[test]
fn the_toggles_set_layout_and_order() {
let mut app = VectorcraftApp::new(Session::new(), Default::default());