Skip to content

Run upstream WPT sources directly and remove the adapted suite - #87

Open
cowboyd wants to merge 3 commits into
dom-document-selectorsfrom
dom-default-view
Open

cowboyd wants to merge 3 commits into
dom-document-selectorsfrom
dom-default-view

Conversation

@cowboyd

@cowboyd cowboyd commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Use Vitest file transforms to Run Web Platform Tests HTML files directly from upstream sources instead of maintaining approximate TypeScript copies.

2026-11-16 22 53 08

Consumers integrate through a single wpt.config.ts supplying a document factory, globals, and case selection.

Each upstream file runs in its own window context and appears as a separate test file. Populate its HTML through parse5, execute scripts and helpers in source order, and use upstream testharness.js for assertions and scheduling. The harness supplies window.document, attaches document.defaultView, and delivers window load after the scripts finish.

Execute every subtest in a selected file to preserve shared state; filter only reported results. This provides the most faithful re-creation of an actual WPT run, however certain test cases (which we don't currently support) are not included such as browser navigation and parser-driven script timing.

Type of change

  • Bug fix
  • Feature
  • Refactor (no behavior change)
  • Documentation
  • Performance improvement
  • Tests
  • Chore (dependencies, CI, tooling)

Checklist

  • I have added a changeset

AI-generated code disclosure

  • This PR includes AI-generated code

@socket-security

socket-security Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​bomb.sh/​router@​0.8.0781009995100
Addedparse5@​8.1.1931008892100

View full report

@pkg-pr-new

pkg-pr-new Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/bombshell-dev/ui/@clack/ui@87

commit: 2f90e0a

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.

1 participant