There are fetch- and security-feature-related WPT tests, for example:
- external/wpt/fetch/
- external/wpt/content-security-policy/
- external/wpt/mixed-content/
- external/wpt/referrer-policy/
And there are also fetch- and security-feature-related WPT tests regarding worker/worklets under
- external/wpt/workers/
- external/wpt/worklets/
- some other locations?
e.g.
- external/wpt/workers/modules/dedicated-worker-import-csp.html
- external/wpt/workers/modules/dedicated-worker-import-referrer.html
- external/wpt/worklets/*-worklet-csp.https.html
- external/wpt/worklets/*-worklet-referrer.https.html
- external/wpt/worklets/*-worklet-import.https.html
- external/wpt/xhr/open-url-redirected-worker-origin.htm
- external/wpt/xhr/open-url-redirected-sharedworker-origin.htm
We might be able to e.g.
- Remove duplicated tests,
- Merge and generate systematically/mechanically similar tests, and
- Increase test coverage.
There are fetch- and security-feature-related WPT tests, for example:
- external/wpt/fetch/
- external/wpt/content-security-policy/
- external/wpt/mixed-content/
- external/wpt/referrer-policy/
And there are also fetch- and security-feature-related WPT tests regarding worker/worklets under
- external/wpt/workers/
- external/wpt/worklets/
- some other locations?
e.g.
- external/wpt/workers/modules/dedicated-worker-import-csp.html
- external/wpt/workers/modules/dedicated-worker-import-referrer.html
- external/wpt/worklets/*-worklet-csp.https.html
- external/wpt/worklets/*-worklet-referrer.https.html
- external/wpt/worklets/*-worklet-import.https.html
- external/wpt/xhr/open-url-redirected-worker-origin.htm
- external/wpt/xhr/open-url-redirected-sharedworker-origin.htm
We might be able to e.g.
- Remove duplicated tests,
- Merge and generate systematically/mechanically similar tests, and
- Increase test coverage.
Design doc: https://docs.google.com/spreadsheets/d/1DnsXL8cmQ6eM0_Uz9w1UNU8vhixFHTY-jzxosRtgMCk/edit#gid=0
There are fetch- and security-feature-related WPT tests, for example:
- external/wpt/fetch/
- external/wpt/content-security-policy/
- external/wpt/mixed-content/
- external/wpt/referrer-policy/
And there are also fetch- and security-feature-related WPT tests regarding worker/worklets under
- external/wpt/workers/
- external/wpt/worklets/
- some other locations?
e.g.
- external/wpt/workers/modules/dedicated-worker-import-csp.html
- external/wpt/workers/modules/dedicated-worker-import-referrer.html
- external/wpt/worklets/*-worklet-csp.https.html
- external/wpt/worklets/*-worklet-referrer.https.html
- external/wpt/worklets/*-worklet-import.https.html
- external/wpt/xhr/open-url-redirected-worker-origin.htm
- external/wpt/xhr/open-url-redirected-sharedworker-origin.htm
We might be able to e.g.
- Remove duplicated tests,
- Merge and generate systematically/mechanically similar tests, and
- Increase test coverage.
Design doc: https://docs.google.com/document/d/17VwvO8qGPjRpaki51L06I5dnefDhztMecaJ8k8qyRwU/edit?usp=sharinghttps://docs.google.com/spreadsheets/d/1DnsXL8cmQ6eM0_Uz9w1UNU8vhixFHTY-jzxosRtgMCk/edit#gid=0
The tests under the following directories are already auto-generated and thus I think it's good to merge CORS/mixed-content/referrer-policy-related worker tests into the following directories:
- external/wpt/fetch/
- external/wpt/mixed-content/
- external/wpt/referrer-policy/
CSP tests (external/wpt/content-security-policy/ and external/wpt/worklets/*-worklet-csp.https.html) are manually written?
We might be able to generate the CSP tests mechanically, but it might take some time.
> CSP tests (external/wpt/content-security-policy/ and external/wpt/worklets/*-worklet-csp.https.html) are manually written?
Regarding external/wpt/worklets/*-worklet-csp.https.html, yes, they were manually written.
I'll refactor referrer-policy tests shortly,
- Fix a bug in generator and to allow RP tests to run on HTTPS page.
- Rename tests to shorten path length; Currently adding tests quite easily results in path length limit exceeded.
Plan:
- Land some CLs currently under review to unblock module workers.
- Later do general cleanup, including:
- Create wpt/common/something/ directory and move common generator script and helper JavaScript there.
- Unify test naming conventions.
Comment 1 by hirosh...@chromium.org
, Nov 19