mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-30 09:18:11 +08:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user