feat(client): 锁定终局结果并接入 Windows 签名构建
- fix(match): 首次归零结束对局并撤销双方扣血许可,裁判结果同步后不再改判 - fix(hud): 蓝方低血量始终保留队伍颜色 - build(windows): 校验代码签名身份和时间戳,明确标注未签名测试包 - docs(version): 说明发布标签基线与语义版本迭代
This commit is contained in:
26 files changed
+823
-229
No files matched your search
@@ -70,6 +70,21 @@ test("the low-health marker uses the exact threshold in the track's mirrored coo
|
||||
}
|
||||
});
|
||||
|
||||
test("critical health preserves each team's color for name, number, fill and border", () => {
|
||||
for (const [team, color] of [[0, "red"], [1, "blue"]]) {
|
||||
for (const hp of [30, 1, 0]) {
|
||||
const html = renderToStaticMarkup(createElement(healthModule.HealthBar, {
|
||||
health: { ...health, team, hp, critical: true }, config: { ...config, pulse: true }, align: "right",
|
||||
}));
|
||||
assert.match(html, /hp--critical/);
|
||||
assert.match(html, /hp--pulsing/);
|
||||
assert.match(html, new RegExp(`hp__fill" style="width:${hp}%;background-color:${color}`));
|
||||
assert.match(html, new RegExp(`hp__value num" style="color:${color}"`));
|
||||
assert.doesNotMatch(html, /var\(--error\)/);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
function snapshot() {
|
||||
return {
|
||||
config: { cameraId: 1, armorId: 2, teamNames: ["我方", "对手"] },
|
||||
|
||||
Reference in new issue
Block a user