mirror of
https://github.com/storytold/deckcraft.git
synced 2026-11-10 04:19:33 -06:00
engine: check the fill colour field in the repeated-ids test
This commit is contained in:
@@ -6467,5 +6467,5 @@ fn repeated_target_ids_edit_the_shape_once() {
|
||||
let id = r["id"].as_u64().unwrap();
|
||||
s.execute("shape.fill", &json!({"ids": vec![id; 50_000], "color": "#ff0000"})).unwrap();
|
||||
let v = s.execute("shape.inspect", &json!({"id": id})).unwrap();
|
||||
assert!(v.to_string().to_lowercase().contains("ff0000"), "{v}");
|
||||
assert_eq!(v["shape"]["fill"]["color"]["base"]["rgb"], json!({"a": 255, "b": 0, "g": 0, "r": 255}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user