mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-18 16:48:13 +08:00
Add Gradient tool test for select and delete removes a stop (#2571)
* Add Gradient tool test for select and delete removes a stop * refactor fills and double click into functions * refactor
This commit is contained in:
@@ -243,6 +243,18 @@ impl EditorTestUtils {
|
||||
pub async fn get_selected_layer(&mut self) -> Option<LayerNodeIdentifier> {
|
||||
self.active_document().network_interface.selected_nodes().selected_layers(self.active_document().metadata()).next()
|
||||
}
|
||||
|
||||
pub async fn double_click(&mut self, position: DVec2) {
|
||||
self.handle_message(InputPreprocessorMessage::DoubleClick {
|
||||
editor_mouse_state: EditorMouseState {
|
||||
editor_position: position,
|
||||
mouse_keys: MouseKeys::LEFT,
|
||||
scroll_delta: ScrollDelta::default(),
|
||||
},
|
||||
modifier_keys: ModifierKeys::empty(),
|
||||
})
|
||||
.await;
|
||||
}
|
||||
}
|
||||
|
||||
pub trait FrontendMessageTestUtils {
|
||||
|
||||
Reference in New Issue
Block a user