Add tests for gradient drawing with transformations (#2481)

* Test gradient drawing with transformations

* Fix bad import

* Fix merge conflicts

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
James Lindsay
2025-04-06 10:35:20 +00:00
committed by GitHub
co-authored by Keavon Chambers
parent f003d5d0db
commit e11b57a7af
5 changed files with 153 additions and 8 deletions
+4
View File
@@ -217,6 +217,10 @@ impl EditorTestUtils {
self.handle_message(Message::Tool(ToolMessage::SelectPrimaryColor { color })).await;
}
pub async fn select_secondary_color(&mut self, color: Color) {
self.handle_message(Message::Tool(ToolMessage::SelectSecondaryColor { color })).await;
}
pub async fn create_raster_image(&mut self, image: graphene_core::raster::Image<Color>, mouse: Option<(f64, f64)>) {
self.handle_message(PortfolioMessage::PasteImage {
name: None,