mirror of
https://github.com/servo/servo.git
synced 2025-09-12 16:08:20 +01:00
Update web-platform-tests to revision 5084587f6b05bf99ad09e7844be66dcc61070cdf
This commit is contained in:
parent
6d42d2f1e8
commit
7d1071a6a4
408 changed files with 8968 additions and 2608 deletions
|
@ -41,7 +41,7 @@ test(function() {
|
|||
const url = new URL("http://localhost/query?param0=0¶m1=1¶m2=2");
|
||||
const searchParams = url.searchParams;
|
||||
const seen = [];
|
||||
for (param of searchParams) {
|
||||
for (const param of searchParams) {
|
||||
if (param[0] === 'param0') {
|
||||
searchParams.delete('param1');
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ test(function() {
|
|||
const url = new URL("http://localhost/query?param0=0¶m1=1¶m2=2");
|
||||
const searchParams = url.searchParams;
|
||||
const seen = [];
|
||||
for (param of searchParams) {
|
||||
for (const param of searchParams) {
|
||||
if (param[0] === 'param0') {
|
||||
searchParams.delete('param0');
|
||||
// 'param1=1' is now in the first slot, so the next iteration will see 'param2=2'.
|
||||
|
@ -72,7 +72,7 @@ test(function() {
|
|||
const url = new URL("http://localhost/query?param0=0¶m1=1¶m2=2");
|
||||
const searchParams = url.searchParams;
|
||||
const seen = [];
|
||||
for (param of searchParams) {
|
||||
for (const param of searchParams) {
|
||||
seen.push(param[0]);
|
||||
searchParams.delete(param[0]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue