Commit adc3368
committed
test: fix location object to match Location interface in WPT
The Location interface should not have a searchParams property according
to the WHATWG URL spec. This commit fixes the WPT test runner to hide
the searchParams property from the location object using a Proxy, ensuring
that WPT tests expecting the Location interface behavior pass correctly.
- Use Proxy to hide searchParams from location object in WPT runner
- Remove historical.any.js from expected failures in url.json
Fixes the 'searchParams on location object' test in historical.any.js1 parent eac00fa commit adc3368
2 files changed
Lines changed: 10 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
599 | | - | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
600 | 609 | | |
601 | 610 | | |
602 | 611 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | 13 | | |
21 | 14 | | |
22 | 15 | | |
| |||
0 commit comments