[wpt-sync] Sync PR 33338 - Implement experimental support for injecting a polyfill into wpt tests.
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox102 fixed)
Tracking | Status | |
---|---|---|
firefox102 | --- | fixed |
People
(Reporter: mozilla.org, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 33338 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/33338
Details from upstream follow.
Robert Flack <flackr@chromium.org> wrote:
Implement experimental support for injecting a polyfill into wpt tests.
Adds the --polyfill argument to wpt serve which will inject the given
polyfill into all html files (i.e. tests).Example:
./wpt serve --polyfill=https://flackr.github.io/scroll-timeline/dist/scroll-timeline.jsThis will inject the scroll timeline polyfill into all loaded html tests which allows testing the scroll timeline polyfill against the tests in wpt for scroll timeline. I'm almost certain there are better ways to implement this but I figured this PR could help get the discussion started around how to support testing polyfills against wpt.
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
Pushed to try https://treeherder.mozilla.org/#/jobs?repo=try&revision=fb4954d9ee5d8d5fd6b32924f0bbdfff46c5d6a7
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e65a3fdcdf58 [wpt PR 33338] - Implement support for injecting a polyfill into wpt tests., a=testonly
Description
•