Add tests for Spline tool to support continuing a previously drawn spline (#2591)

* Add tests for Spline tool to support continuing a previously drawn spline

* refactor
This commit is contained in:
Sidharth-Singh10
2025-04-18 22:24:35 +00:00
committed by GitHub
parent 0877c75959
commit 73d12bcb82
2 changed files with 124 additions and 0 deletions
+9
View File
@@ -230,6 +230,15 @@ impl EditorTestUtils {
})
.await;
}
pub async fn draw_spline(&mut self, points: &[DVec2]) {
self.select_tool(ToolType::Spline).await;
for &point in points {
self.click_tool(ToolType::Spline, MouseKeys::LEFT, point, ModifierKeys::empty()).await;
}
self.press(Key::Enter, ModifierKeys::empty()).await;
}
}
pub trait FrontendMessageTestUtils {