mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-28 01:10:54 +01:00
Brushes: keep the library test's frame times increasing
The Vector Packs click runs frames at 3.0 to 3.5, so the Pressure Sensitive click now starts at 4.0 instead of 3.0. egui panics when a frame's time is earlier than the last one.
This commit is contained in:
1 parent
73823beee0
commit
a18d5de313
1 file changed
+1
-1
@@ -244,7 +244,7 @@ fn the_window_menu_and_the_brushes_panel_open_brush_libraries() {
|
||||
assert_eq!((r["open"].as_str(), r["count"].as_u64()), (Some("pressure-sensitive"), Some(4)));
|
||||
let path = app.run("shape.line", json!({"x1": 10, "y1": 100, "x2": 180, "y2": 100})).unwrap()["id"].as_u64().unwrap();
|
||||
let undo = undo_len(&app);
|
||||
click(&mut app, &ctx, "Flex Ribbon", Modifiers::NONE, 3.0);
|
||||
click(&mut app, &ctx, "Flex Ribbon", Modifiers::NONE, 4.0);
|
||||
assert!(has(&app, "Flex Ribbon") && !has(&app, "Pulse Stroke"));
|
||||
assert_eq!(undo_len(&app), undo + 1);
|
||||
assert_eq!(
|
||||
|
||||
Reference in new issue
Block a user