wasm: validate kicad hi-dpi scaling
This commit is contained in:
parent
6fa6c9207f
commit
a49ed49d5d
12 changed files with 490 additions and 30 deletions
16
tests/e2e/retinascale.spec.ts
Normal file
16
tests/e2e/retinascale.spec.ts
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// Retina/HiDPI Scaling Test - Verifies bitmaps render at correct logical pixel sizes
|
||||
import { test, expect, tryLoadApp } from './utils/fixtures';
|
||||
|
||||
test.describe('Retina Scale Tests', () => {
|
||||
|
||||
test('Bitmap icons render at correct logical size', async ({ page, testLogger }) => {
|
||||
await page.goto('/standalone/retinascale/retinascale_test.html');
|
||||
const loaded = await tryLoadApp(page);
|
||||
|
||||
await page.screenshot({ path: 'test-results/retinascale-01-loaded.png', fullPage: true });
|
||||
|
||||
expect(loaded, 'Retina scale test app should load').toBe(true);
|
||||
expect(testLogger.errors.filter(e => !e.includes('favicon'))).toHaveLength(0);
|
||||
});
|
||||
|
||||
});
|
||||
Loading…
Reference in a new issue