Bug 161901 - W3C WPT have tests without corresponding html filenames
Summary: W3C WPT have tests without corresponding html filenames
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-13 03:54 PDT by youenn fablet
Modified: 2017-10-14 16:49 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description youenn fablet 2016-09-13 03:54:42 PDT
As per https://github.com/w3c/web-platform-tests/blob/master/docs/test-format-guidelines.md, WPT files such as XX.worker.js should lead to making a test on XX.worker URL.
A file src as YY.any.js should lead to making a test on YY.any.html and YY.any.worker.

The wpt server will generate the content of each such test using templates.

This does not work well with our current infrastructure which requires these files to detect tests.
Comment 1 youenn fablet 2016-09-13 03:58:34 PDT
See for instance:
LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/XMLHttpRequest-withCredentials.any.js

LayoutTests/imported/w3c/web-platform-tests/IndexedDB/interfaces.worker.js
LayoutTests/imported/w3c/web-platform-tests/WebIDL/ecmascript-binding/es-exceptions/constructor-object.worker.js
LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/abort-during-open.worker.js
LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-send.worker.js
LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-usp.worker.js
LayoutTests/imported/w3c/web-platform-tests/url/historical.worker.js
Comment 2 youenn fablet 2016-09-13 04:00:31 PDT
This eases test authoring but this does not make our test system simpler...

One possibility would be for WPT repo to maintain a script that would generate the missing files based on the templates used by the wpt server.

When importing, we would call that script and do regular import.
Comment 3 youenn fablet 2017-10-14 16:49:23 PDT
We create the .html files as dummy empty files.