From 790fdf815fa2ec557615cef173bbcc1ac7a8a242 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Fri, 30 Oct 2026 01:09:14 +0700 Subject: [PATCH] Tests: the Eraser's options include its Size mode and variation --- crates/tools/src/draw2/gesture/tests.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/tools/src/draw2/gesture/tests.rs b/crates/tools/src/draw2/gesture/tests.rs index 7c8784627..c3335d1cf 100644 --- a/crates/tools/src/draw2/gesture/tests.rs +++ b/crates/tools/src/draw2/gesture/tests.rs @@ -313,8 +313,11 @@ fn blob_brush_sends_keep_selected_and_merge_only_with_selection() { "{acts:?}" ); } - // The Eraser keeps Size, Angle and Roundness: a round tip by default. - assert_eq!(GestureTool::new("eraser").options(), json!({"size": 10.0, "angle": 0.0, "roundness": 100.0})); + // The Eraser keeps Size (Fixed by default), Angle and Roundness: a round tip by default. + assert_eq!( + GestureTool::new("eraser").options(), + json!({"size": 10.0, "sizeMode": "fixed", "sizeVariation": 0.0, "angle": 0.0, "roundness": 100.0}) + ); } /// The Blob Brush has a Fidelity, 1.5 pt by default and 0.01 to 100 pt, and its stroke sends it.