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>
24 lines
760 B
TypeScript
24 lines
760 B
TypeScript
// wxFontEnumerator Tests - Local Font Access API integration
|
|
import { test, expect, tryLoadApp } from './utils/fixtures';
|
|
|
|
test.describe('wxFontEnumerator Tests', () => {
|
|
|
|
test('Font enumeration renders correctly', async ({ page, testLogger }) => {
|
|
await page.goto('/standalone/fontenum/fontenum_test.html');
|
|
const loaded = await tryLoadApp(page);
|
|
|
|
if (!loaded) {
|
|
test.skip();
|
|
return;
|
|
}
|
|
|
|
// Wait for auto font enumeration to complete (uses Asyncify)
|
|
await page.waitForTimeout(3000);
|
|
|
|
await page.screenshot({ path: 'test-results/fontenum.png', fullPage: true });
|
|
|
|
expect(loaded, 'Font enum app should load').toBe(true);
|
|
expect(testLogger.errors.filter(e => !e.includes('favicon'))).toHaveLength(0);
|
|
});
|
|
|
|
});
|