Skip to content

Run the dom/idlharness WPT - #8768

Merged
littledivy merged 1 commit into
mainfrom
littledivy/2026-11-21-wpt-dom-idlharness
Nov 21, 2026
Merged

littledivy merged 1 commit into
mainfrom
littledivy/2026-11-21-wpt-dom-idlharness

Conversation

@littledivy

Copy link
Copy Markdown
Member

dom/idlharness.any.js checks the IDL shape of EventTarget, Event, CustomEvent, AbortController and AbortSignal, but no WPT target covered the top level of dom/, so it never ran.

In this patch a new //src/wpt:dom target runs it, leaving out the subdirectories (abort and events have their own targets, and the rest need a document). EventTarget and AbortController pass every check. 17 subtests are expected to fail: Event and CustomEvent have no initEvent() or initCustomEvent(), target and srcElement are undefined instead of null, isTrusted is a data property, the CustomEvent and AbortSignal interface objects don't inherit from Event and EventTarget, and there is no self.event. The checks for document interfaces (Node, Element, Range, ...) are omitted. 181 of 198 subtests pass. Only test config changes.

//src/wpt:dom@ and //src/wpt:dom@all-autogates each passed 100 of 100 runs with --runs_per_test=100.

`dom/idlharness.any.js` checks the IDL shape of EventTarget, Event, CustomEvent, AbortController and AbortSignal, but no WPT target covered the top level of `dom/`, so it never ran.

In this patch a new `//src/wpt:dom` target runs it, leaving out the subdirectories (`abort` and `events` have their own targets, and the rest need a document). EventTarget and AbortController pass every check. 17 subtests are expected to fail: Event and CustomEvent have no `initEvent()` or `initCustomEvent()`, `target` and `srcElement` are undefined instead of null, `isTrusted` is a data property, the CustomEvent and AbortSignal interface objects don't inherit from Event and EventTarget, and there is no `self.event`. The checks for document interfaces (Node, Element, Range, ...) are omitted. 181 of 198 subtests pass. Only test config changes.

`//src/wpt:dom@` and `//src/wpt:dom@all-autogates` each passed 100 of 100 runs with `--runs_per_test=100`.
@littledivy
littledivy requested review from a team as code owners November 21, 2026 03:34

@clanky-the-clanker clanky-the-clanker Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Approved — This pull request only changes test configuration, adding a WPT target for dom/idlharness. I found no issues.

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


✅ All checks passed

📋 Code Quality: ✅ LGTM

The new dom target follows the existing exclude_test_dirs pattern. The config has an entry for every top-level dom/ test file, each with the comment the harness requires, and its 17 expected failures match the description.


📝 Documentation: ✅ LGTM

No documentation issues. The config comments describe the current behaviour.


Reviewed commit: 37f817c4

@npaun

npaun commented Nov 21, 2026

Copy link
Copy Markdown
Member

Some real scraping of the bottom of the barrel here, but yeah let's add it.

@littledivy
littledivy enabled auto-merge November 21, 2026 03:48
@littledivy
littledivy merged commit 5d27977 into main Nov 21, 2026
23 checks passed
@littledivy
littledivy deleted the littledivy/2026-11-21-wpt-dom-idlharness branch November 21, 2026 03:54
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