Repository navigation
Commit d3dfa02
committed
Force align test sources with upstream WPT
While implementing DOM features I noticed the coding agent engaging in
the following pathological behaviors:
1. changing the WPT tests in order to accomodate a feature I was
adding to the DOM, and allowing it to drift from upstream.
2. Writing its own test cases outside the WPT suite for behavior that
was explicitly covered by the WPT
3. Not being sure what exactly each WPT test was supposed to cover.
This adds stricter guardrails around what is allowed in the WPT and
instructs future agents to respect them. It stipulates that every test
file must mirror the upstream path of the source from which it derives.
The specific revision of the WPT is in the /WPT_REVISION file. This allows agents to quickly navigate to the source of the
test.
Furthermore, it strengthens the language to say that the upstream WPT
should be followed very closely when adding new tests, or implementing
functionality.
Then, I had it re-sync with the upstream WPT and ended up with a test
suite that is much more faithful to the original implementation. In
fact, it got me thinking that once we have HTML parsing as part of our
functionality, we can switch to use the upstream tests directly.
Select upstream sources and cases with optional include/exclude rules,
with explicit includes taking precedence. Remove feature prerequisite
gates so each selected case exercises its own supporting operations.
Configure global bindings alongside test selection in wpt.config.ts,
including factories that resolve bindings for each fresh document.1 parent b990b53 commit d3dfa02
647 files changed
Lines changed: 59390 additions & 19795 deletions
File tree
- .changeset
- .github/workflows
- packages
- ui
- src
- test
- web-platform-tests
- docs
- scripts
- src
- compatibility
- character-data
- contracts
- custom-elements
- document
- xml
- elements
- button
- details
- dialog
- fieldset
- form
- input
- label
- option
- output
- select
- summary
- textarea
- element
- selectors
- events
- data
- dispatch
- listeners
- focus
- input
- keyboard
- mouse
- mutation-observer
- records
- node
- comparison
- parsing
- selection
- document
- range
- shadow
- events
- focus
- roots
- slots
- style
- templates
- traversal
- wpt
- css
- css-cascade
- css-variables
- cssom
- selectors
- invalidation
- custom-elements
- form-associated
- domparsing
- dom
- events
- lists
- nodes
- ranges
- traversal
- html
- dom
- elements/global-attributes
- editing
- focus/focus-management
- interaction/focus
- focus-management
- semantics
- forms
- constraints
- form-control-infrastructure
- form-submission-0
- resetting-a-form
- textfieldselection
- the-button-element
- the-datalist-element
- the-fieldset-element
- the-form-element
- the-input-element
- the-label-element
- the-legend-element
- the-meter-element
- the-optgroup-element
- the-option-element
- the-output-element
- the-progress-element
- the-select-element
- customizable-select
- the-textarea-element
- interactive-elements
- the-details-element
- the-dialog-element
- the-summary-element
- scripting-1/the-template-element
- additions-to-the-steps-to-clone-a-node
- definitions
- innerhtml-on-templates
- selectors/pseudo-classes
- syntax/serializing-html-fragments
- inert
- input-events
- selection
- shadow-dom
- declarative
- focus
- uievents
- constructors
- focusevents
- interface
- keyboard
- mouse
- order-of-events
- focus-events
- mouse-events
- xhr/formdata
- test
- browser
- wpt
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 33 | + | |
35 | 34 | | |
36 | | - | |
| 35 | + | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
40 | | - | |
| 39 | + | |
41 | 40 | | |
42 | | - | |
| 41 | + | |
This file was deleted.
0 commit comments