Skip to content

Commit

Permalink
chore: update WPT (#3576)
Browse files Browse the repository at this point in the history
Co-authored-by: Uzlopak <[email protected]>
  • Loading branch information
github-actions[bot] and Uzlopak authored Sep 10, 2024
1 parent 95741c7 commit 0b8e06e
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions test/fixtures/wpt/fetch/api/cors/cors-filtering.sub.any.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ function corsFilter(corsUrl, headerName, headerValue, isFiltered) {
} else {
assert_false(resp.headers.has(headerName), "UA should exclude " + headerName + " header from response");
}
test.done();
});
}, "CORS filter on " + headerName + " header");
}
Expand All @@ -36,7 +35,6 @@ function corsExposeFilter(corsUrl, headerName, headerValue, isForbidden, withCre
} else {
assert_false(resp.headers.has(headerName), "UA should exclude " + headerName + " header from response");
}
test.done();
});
}, title);
}
Expand All @@ -54,16 +52,14 @@ corsFilter(url, "Content-Length", "3" , false); // top.txt contains "top"
corsFilter(url, "Age", "27", true);
corsFilter(url, "Server", "wptServe" , true);
corsFilter(url, "Warning", "Mind the gap" , true);
corsFilter(url, "Set-Cookie", "name=value" , true);
corsFilter(url, "Set-Cookie2", "name=value" , true);
corsFilter(url, "Set-Cookie", "name=value; max-age=0", true);
corsFilter(url, "Set-Cookie2", "name=value; max-age=0", true);

corsExposeFilter(url, "Age", "27", false);
corsExposeFilter(url, "Server", "wptServe" , false);
corsExposeFilter(url, "Warning", "Mind the gap" , false);

corsExposeFilter(url, "Set-Cookie", "name=value" , true);
corsExposeFilter(url, "Set-Cookie2", "name=value" , true);
corsExposeFilter(url, "Set-Cookie", "name=value" , true, true);
corsExposeFilter(url, "Set-Cookie2", "name=value" , true, true);

done();
corsExposeFilter(url, "Set-Cookie", "name=value; max-age=0" , true);
corsExposeFilter(url, "Set-Cookie2", "name=value; max-age=0" , true);
corsExposeFilter(url, "Set-Cookie", "name=value; max-age=0" , true, true);
corsExposeFilter(url, "Set-Cookie2", "name=value; max-age=0" , true, true);

0 comments on commit 0b8e06e

Please sign in to comment.