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