Align player health resolution guard with asset

This commit is contained in:
Admin 2026-09-18 05:49:10 +00:00
parent 87bf4a4f5e
commit 6b7cf5cdaf

View File

@ -93,10 +93,10 @@ const webpDimensions = (name, dataUrl) => {
assert.fail(`${name} must expose VP8X dimensions`); assert.fail(`${name} must expose VP8X dimensions`);
}; };
test('playerHealth native frame stays high resolution', () => { test('playerHealth native frame preserves usable HUD resolution', () => {
const { width, height } = webpDimensions('playerHealth', playerHealth); const { width, height } = webpDimensions('playerHealth', playerHealth);
assert.ok(width >= 300, `playerHealth width must stay >= 300px, got ${width}px`); assert.ok(width >= 300, `playerHealth width must stay >= 300px, got ${width}px`);
assert.ok(height >= 100, `playerHealth height must stay >= 100px, got ${height}px`); assert.ok(height >= 96, `playerHealth height must stay >= 96px, got ${height}px`);
}); });
test('enemyHealth health sheet stays high resolution', () => { test('enemyHealth health sheet stays high resolution', () => {