Skip to content

Adds WPT tests and fixes cross realm issues - #669

Open
sorvell wants to merge 23 commits into
masterfrom
scoped-registry-cross-realm
Open

sorvell wants to merge 23 commits into
masterfrom
scoped-registry-cross-realm

Conversation

@sorvell

@sorvell sorvell commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator

Adds WPT tests and fixes corner case related cross realm issues.

npm test also runs the web platform tests for custom element registries,
vendored in test/wpt/, in Chromium, Firefox and WebKit with the polyfill
forced (npm run test:wpt).

See README.md for info

Steve Orvell added 13 commits October 1, 2026 06:42
…orced-polyfill Chromium run

- tests.yml: Node 24.5, actions v4, install Playwright browsers, drop the
  Saucelabs job
- scoped-custom-element-registry: test:forced runs the tests in Chromium with
  the polyfill forced (FORCE_POLYFILL), and npm test depends on it
- test/wtr.firefox.config.js: run the tests locally in a Firefox-engine
  browser without native support
A rewrite. Start with the "How it works" overview at the top of
src/scoped-custom-element-registry.ts, then read the file rather than the
line diff.
behavior.test.js and parsing.test.html(.js) are new; tests of polyfill-only
behavior, and of spec behavior Chromium gets wrong, use itWithPolyfill so the
suite also runs against native implementations.
Comment thread packages/scoped-custom-element-registry/test/wpt-proxy.mjs Fixed
Comment thread packages/scoped-custom-element-registry/test/wpt-proxy.mjs Fixed
@sorvell
sorvell force-pushed the scoped-registry-cross-realm branch from df13638 to 1fdb795 Compare October 6, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants