pcbjam/tests/e2e/textdecor.spec.ts
Viktor Vaczi 756feb35da Add WASM feature tests: font enum, text decor, bitmap mask, regions
New test apps and E2E tests:
- fontenum: Font enumeration via Local Font Access API (180 fonts)
- textdecor: Text underline/strikethrough decorations
- bitmask: wxMask bitmap transparency with color keys
- regions: Non-rectangular region clipping (union, subtract, complex shapes)

Updates:
- playwright.config.ts: Add local-fonts permission
- WHATWORKS.md: Document implemented features, update test counts
- Makefile.wasm: Add build targets for new test apps

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 11:06:33 +01:00

17 lines
646 B
TypeScript

// Text Decorations Tests - Underline and Strikethrough rendering
import { test, expect, tryLoadApp } from './utils/fixtures';
test.describe('Text Decorations Tests', () => {
test('Text decorations render correctly', async ({ page, testLogger }) => {
await page.goto('/standalone/textdecor/textdecor_test.html');
const loaded = await tryLoadApp(page);
await page.waitForTimeout(500);
await page.screenshot({ path: 'test-results/textdecor.png', fullPage: true });
expect(loaded, 'Text decorations app should load').toBe(true);
expect(testLogger.errors.filter(e => !e.includes('favicon'))).toHaveLength(0);
});
});