[WPT/common/security-features] Merge multiple subtests into one file
This CL merges subtests that only differ in subresource request's origin/redirection into a single file. In `/common/security-features/tools/spec.src.json`, `origin` and `redirection` fields are removed from `test_file_path_pattern`, so that scenarios that only differ in subresource request's origin/redirection result in the same file name. __eq__() is added to some classes, as this CL adds some assert()s that indirectly requires the __eq__()s. Diffs in generated files: - An array of scenarios is written, instead of single scenario. - `<title>`, `<link rel>` to spec URLs, and `<meta name="description">` are removed, because this CL merges multiple files with different titles etc. into one file. - `<meta name="timeout" content="long">` is added, as a single test now can run up to 8 subtests. (In my local runs, the max exec time for a single generated test file was about 2.8 seconds). - <link rel="author"> is removed, as the git history log is more representative. Subsequent CLs will actually re-generate files: - https://chromium-review.googlesource.com/c/chromium/src/+/2103589 - https://chromium-review.googlesource.com/c/chromium/src/+/2102931 - https://chromium-review.googlesource.com/c/chromium/src/+/2102932 which will reduce the number of generated tests from 8548 to 1380. Bug: 906850 Change-Id: I2c3e847dcbfd89311d0e36da5b91c20f9a3f3a34 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1893828 Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org> Reviewed-by:Mike West <mkwst@chromium.org> Reviewed-by:
Kenichi Ishibashi <bashi@chromium.org> Reviewed-by:
Hiroki Nakagawa <nhiroki@chromium.org> Cr-Commit-Position: refs/heads/master@{#750912}
Showing
Please register or sign in to comment