[wpt-sync] Sync PR 41254 - Refactor FLEDGE WPTs to use Python bidding/decision logic handlers.
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox118 fixed)
Tracking | Status | |
---|---|---|
firefox118 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 41254 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/41254
Details from upstream follow.
Andrew Verge <averge@chromium.org> wrote:
Refactor FLEDGE WPTs to use Python bidding/decision logic handlers.
Previously, bidding and decision logic functions were loaded from static
JS files, which limited their utility; the more configuration we wanted
in the tests, the more static files we had to write. This change
replaces the static *.js and *.js.headers files with Python that
generates the same code (except with imperfect formatting).The Python handlers are configurable with URL parameters. This means
that whenever we want to configurea FLEDGE test to do something new,
we can just provide a URL param to the Python handler, which can use
it to modify the JS under test.Change-Id: I980f87074379e6acb8608bf552e9fa775576d3ca
Reviewed-on: https://chromium-review.googlesource.com/4732766
WPT-Export-Revision: 478890a25a09c7a8eecdb271b87caeeb5b0b88d5
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 1•1 year ago
|
||
Assignee | ||
Comment 2•1 year ago
|
||
Comment 4•1 year ago
|
||
bugherder |
Description
•