Files
firefox/testing/web-platform/tests/reporting
Ian Clelland 210f6147ed Bug 1897000 [wpt PR 46291] - Remove dependency on experimental document policies in tests, a=testonly
Automatic update from web-platform-tests
Remove dependency on experimental document policies in tests

There are several internal and external tests which rely on experimental
document policy features to demonstrate the operation of document policy
itself. This CL updates these tests to use more well-standardized
features instead.

Bug: 340920459
Change-Id: I8bccbb6f86ffae4dfcd086bf2947a0adac5eb107
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5539454
Reviewed-by: Chris Harrelson <[email protected]>
Commit-Queue: Ian Clelland <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1301744}

--

wpt-commits: 147cb9c4b0752992efb463a0eea72f64f688f840
wpt-pr: 46291
2024-05-23 10:00:38 +00:00
..
…
…

Tests for the Reporting API.

The tests in this directory validate the generic functionaity of the Reporting API. Since reports are not actually generated by that specification, these tests occasionally make use of other integrations, like CSP or Permissions Policy.

Testing integration with the Reporting API

More comprehensive tests for other specifications' generated reports should be in those specs' respective directories.

There are two general methods of testing reporting integration:

  • The simpler is with the ReportingObserver interface, generating reports within a document and reading them from script running in that document.
  • For reports which cannot be observed from a document, there is a reporting collector provided which can receive reports sent over HTTP and then serve them in response to queries from the test script. See resources/README.md for details.