mirror of
https://github.com/storytold/deckcraft.git
synced 2026-11-05 18:09:32 +00:00
Format Shape: the glow size test checks the colour and transparency are kept
This commit is contained in:
1 parent
322be04e7b
commit
5638b0ca09
1 file changed
+7
-1
@@ -53,8 +53,14 @@ fn preset_tiles_set_shadow_glow_and_soft_edges() {
|
||||
let fx = effects(&h);
|
||||
assert!(fx.outer_shadow.is_none() && fx.inner_shadow.is_none());
|
||||
|
||||
// A radius tile keeps the glow's colour and transparency.
|
||||
h.state_mut().session.execute("shape.effects", &json!({"glowProps": {"color": "accent2", "transparency": 0.35, "radius": 8.0}})).unwrap();
|
||||
h.run_steps(3);
|
||||
let colour = effects(&h).glow.unwrap().color;
|
||||
click(&mut h, "18 pt glow");
|
||||
assert_eq!(effects(&h).glow.unwrap().radius, 18.0);
|
||||
let glow = effects(&h).glow.unwrap();
|
||||
assert_eq!(glow.radius, 18.0);
|
||||
assert_eq!(glow.color, colour);
|
||||
click(&mut h, "No glow");
|
||||
assert!(effects(&h).glow.is_none());
|
||||
|
||||
|
||||
Reference in new issue
Block a user