Repository navigation
Run the dom/idlharness WPT - #8768
Merged
Merged
Conversation
`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`.
There was a problem hiding this comment.
✅ 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
Member
|
Some real scraping of the bottom of the barrel here, but yeah let's add it. |
npaun
approved these changes
Nov 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
dom/idlharness.any.jschecks the IDL shape of EventTarget, Event, CustomEvent, AbortController and AbortSignal, but no WPT target covered the top level ofdom/, so it never ran.In this patch a new
//src/wpt:domtarget runs it, leaving out the subdirectories (abortandeventshave 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 noinitEvent()orinitCustomEvent(),targetandsrcElementare undefined instead of null,isTrustedis a data property, the CustomEvent and AbortSignal interface objects don't inherit from Event and EventTarget, and there is noself.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-autogateseach passed 100 of 100 runs with--runs_per_test=100.