From 6da0e0f115944b97e77543c00243b141f7418761 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Thu, 12 Nov 2026 11:29:37 -0800 Subject: [PATCH] Tests: the shadow-on-each-fill test installs its own plug-in id a_shadow_on_each_fill_a_painted_effect_returns_follows_the_transform_after_it installed test.engine.twofills, which a_second_painted_effect_on_a_fill_keeps_the_piece_s_other_fills also installs with a different module. Installed plug-ins are kept for the whole test process, so running the two tests in parallel could run one test's effect with the other's module. The test now installs test.engine.shadowedfills. --- crates/engine/src/tests/plugins.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/engine/src/tests/plugins.rs b/crates/engine/src/tests/plugins.rs index be4193a812..f9abd8430d 100644 --- a/crates/engine/src/tests/plugins.rs +++ b/crates/engine/src/tests/plugins.rs @@ -461,11 +461,11 @@ fn a_shadow_on_each_fill_a_painted_effect_returns_follows_the_transform_after_it let mut s = session(); let id = rect(&mut s, 10.0, "#ff0000"); let out = json!({"objects": [{"path": square_at(40.0), "fills": [solid("#00ff00"), solid("#0000ff")]}]}).to_string(); - install_wat(&mut s, &tpl::returning(&painting("test.engine.twofills", true), &out)); + install_wat(&mut s, &tpl::returning(&painting("test.engine.shadowedfills", true), &out)); let fill = node(&s, id).appearance.items.iter().position(|i| i.is_fill()).unwrap(); for (effect, params) in [ ("stylize.dropShadow", json!({"x": 10, "y": 0, "blur": 0, "opacity": 50})), - ("plugin.test.engine.twofills", json!({})), + ("plugin.test.engine.shadowedfills", json!({})), ("distort.transform", json!({"scaleH": 200, "scaleV": 200})), ] { run(&mut s, "effect.apply", json!({"ids": [id.0], "effect": effect, "params": params, "item": fill}));