Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wpt: Add documentation for device API testing methodology
Adds references to MojoJS to the README.md files for the Web Bluetooth, WebHID, Web Serial and WebUSB APIs. Also adds README files linking from the Chromium-specific WPT test directories to the main documentation in WPT. Bug: 983364 Change-Id: I8db37a0fad4b93a13b7c56d56fbefc400f7b7513 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3171406 Reviewed-by: Chris Mumford <cmumford@google.com> Commit-Queue: Reilly Grant <reillyg@chromium.org> Cr-Commit-Position: refs/heads/main@{#923995}
- Loading branch information
1 parent
d9b6dce
commit 667e308
Showing
3 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Web Serial Testing | ||
|
||
Automated testing for the [Web Serial API] relies on a test-only interface which | ||
must be provided by browsers under test. This is similar to [WebUSB] however | ||
there is no separate specification of the API other than the tests themselves | ||
and the Chromium implementation. | ||
|
||
Tests in this suite include `resources/automation.js` to detect and load the | ||
test API as needed. | ||
|
||
The Chromium implementation is provided by | ||
`../resources/chromium/fake-serial.js` using [MojoJS]. | ||
|
||
Tests with the "-manual" suffix do not use the test-only interface and expect a | ||
real hardware device to be connected. The specific characteristics of the device | ||
are described in each test. | ||
|
||
[MojoJS]: https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/testing/web_platform_tests.md#mojojs | ||
[WebUSB]: ../webusb | ||
[Web Serial API]: https://wicg.github.io/serial |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters