-
Notifications
You must be signed in to change notification settings - Fork 149
Automatically add an environement prefix to test name #168
Comments
I'm not sure I agree that putting them in the same file necessarily is a good idea. |
I agree it is not always relevant or suitable, but in some cases it could be interesting not to duplicate html files whereas they are almost identical. |
In general, it seems to me like a good idea for tests which run in XXWorkers to have their names automatically prefixed. Streams API tests are currently putting all tests (worker, shared worker, service worker) in the same file, see whatwg/streams#411. That said, within WebKit, we generally prefer splitting tests in different files. |
I created a PR that we did with Antoine here: #175 |
This issue has been moved to web-platform-tests/wpt#7166; please continue all discussion there. |
It would be nice to run some javascript tests in different environments (windows, workers, service workers) without duplicating html files. The idea is to have a js file with all the tests written in it and then running them in different environment from the same html file.
For example if we use a test.js which has a test named test1. We could have something like this in the html file:
Then testharness could rename each test in order to have different names depending on environment, e.g.:
The text was updated successfully, but these errors were encountered: