---
name: web-platform-tests
description: "Use when adopting Web Platform Tests to assess this standard: Verify browser behavior against shared web tests"
---

# Apply Web Platform Tests

For a browser or web engine implementation, compare the behavior of a targeted feature with shared, specification-linked tests. Keep the browser build, precise test IDs and expected results with each run.

## Procedure

1. Inspect the repository configuration and identify the files or targets covered by Web Platform Tests.
2. Choose one web-platform feature whose implementation changed. Select the corresponding WPT subtree and a supported browser build. Save test IDs, expected and actual outcomes. Re-run an unexpected failure with that same binary and inspect the linked specification before proposing a fix.
3. Record the tool version, configuration, scope and findings. Explain any checks that could not run.
4. Use the same invocation after changes and compare the evidence against the baseline.

Refer to [the upstream documentation](https://github.com/web-platform-tests/wpt) for configuration and prerequisites.

## Worked check

For an unexpected result, rerun the affected test ID, capture the raw log, then compare it with the browser's expectation metadata. Mozilla also explains when inconsistent reruns should be recorded as intermittent.

[Evidence and example](https://firefox-source-docs.mozilla.org/web-platform/index.html)

## Tool invocation

```
./wpt run chrome dom/historical.html
```
