[wpt-sync] Sync PR 56841 - feat(serve): Add server-side handlers for Test262 tests
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox151 fixed)
| Tracking | Status | |
|---|---|---|
| firefox151 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 56841 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/56841
Details from upstream follow.
wpt-pr-bot <wpt-pr-bot@users.noreply.github.com> wrote:
feat(serve): Add server-side handlers for Test262 tests
This commit introduces the necessary server-side handlers within
wptserveto dynamically generate HTML wrappers for Test262 JavaScript tests. This is needed to enable Test262 execution within WPT.Key changes and their purpose:
- Introduction of several new
HtmlWrapperHandlerandWrapperHandlersubclasses (e.g.,Test262WindowHandler,Test262WindowTestHandler,Test262StrictHandler). These handlers are responsible for:
- Identifying Test262 test requests based on URL patterns.
- Dynamically constructing an HTML page that loads the Test262
.jstest file within an isolatediframe.- Injecting the required Test262 harness files (
assert.js,sta.js) and the WPT-specifictestharness-client.jsandharness-adapter.jsinto the generated HTML.- Processing Test262-specific metadata (like
includesandnegativeexpectations) extracted by the manifest tooling from PR 1 (#56840 .- Updates to
RoutesBuilderinserve.pyto map incoming requests for Test262 test URLs to the appropriate new handler.- Unit tests in
test_serve.pyto validate the correct behavior of these new handlers, including URL rewriting, metadata processing, and the structure of the generated HTML wrappers.This work directly supports the integration of Test262 into WPT as detailed in the RFC: https://github.com/web-platform-tests/rfcs/pull/229
This commit is the second in a series of smaller PRs split from the larger, original implementation in https://github.com/web-platform-tests/wpt/pull/55997.
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 1•2 months ago
|
||
| Assignee | ||
Comment 2•2 months ago
|
||
Comment 4•1 month ago
|
||
| bugherder | ||
| Assignee | ||
Comment 5•1 month ago
|
||
Description
•