tree: 9bd41a913d26d2401910a0bf5ee7956479679c9f [path history] [tgz]
  1. resources/
  2. idlharness.https.any.js
  3. META.yml
  4. README.md
  5. serial-allowed-by-feature-policy-attribute-redirect-on-load.https.sub.html
  6. serial-allowed-by-feature-policy-attribute.https.sub.html
  7. serial-allowed-by-feature-policy.https.sub.html
  8. serial-allowed-by-feature-policy.https.sub.html.headers
  9. serial-default-feature-policy.https.sub.html
  10. serial-disabled-by-feature-policy.https.sub.html
  11. serial-disabled-by-feature-policy.https.sub.html.headers
  12. serial_getPorts.https.any.js
  13. serial_onconnect.https.any.js
  14. serial_ondisconnect.https.any.js
  15. serial_requestPort.https.window.js
  16. serialPort_close.https.any.js
  17. serialPort_disconnect-manual.https.html
  18. serialPort_events.https.any.js
  19. serialPort_forget.https.any.js
  20. serialPort_getInfo.https.any.js
  21. serialPort_getSignals.https.any.js
  22. serialPort_loopback-manual.https.html
  23. serialPort_loopback_BreakError-manual.https.html
  24. serialPort_loopback_BufferOverrunError-manual.https.html
  25. serialPort_loopback_flowControl-manual.https.html
  26. serialPort_ondisconnect.https.any.js
  27. serialPort_open.https.any.js
  28. serialPort_readable-manual.https.html
  29. serialPort_readable_cancel.https.any.js
  30. serialPort_readable_chain.https.any.js
  31. serialPort_readable_closeLocked.https.any.js
  32. serialPort_readable_disconnect.https.any.js
  33. serialPort_readable_largeRead.https.any.js
  34. serialPort_readable_open.https.any.js
  35. serialPort_readable_parityError.https.any.js
  36. serialPort_readable_pipeThrough.https.any.js
  37. serialPort_readable_smallRead.https.any.js
  38. serialPort_setSignals.https.any.js
  39. serialPort_writable.https.any.js
  40. serialPort_writable_detachBuffer.https.any.js
serial/README.md

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.