tree: 9cb3ed64fa841515c89340c5aa529928d922e63c [path history] [tgz]
  1. resources/
  2. idlharness.https.any.js
  3. insecure-context.any.js
  4. META.yml
  5. protected-interface-classes.https.any.js
  6. README.md
  7. usb-allowed-by-feature-policy-attribute-redirect-on-load.https.sub.html
  8. usb-allowed-by-feature-policy-attribute.https.sub.html
  9. usb-allowed-by-feature-policy.https.sub.html
  10. usb-allowed-by-feature-policy.https.sub.html.headers
  11. usb-default-feature-policy.https.sub.html
  12. usb-disabled-by-feature-policy.https.sub.html
  13. usb-disabled-by-feature-policy.https.sub.html.headers
  14. usb-supported-by-feature-policy.html
  15. usb.https.any.js
  16. usb.https.window.js
  17. usb.serviceworker.https.html
  18. usb.serviceworker.js
  19. usbAlternateInterface.https.any.js
  20. usbConfiguration.https.any.js
  21. usbConnectionEvent.https.any.js
  22. usbDevice-iframe.https.html
  23. usbDevice-worker.https.html
  24. usbDevice.https.any.js
  25. usbDevice_claimInterface-manual.https.html
  26. usbDevice_controlTransferIn-manual.https.html
  27. usbDevice_transferIn-manual.https.html
  28. usbEndpoint.https.any.js
  29. usbInterface.https.any.js
  30. usbInTransferResult.https.any.js
  31. usbIsochronousInTransferPacket.https.any.js
  32. usbIsochronousInTransferResult.https.any.js
  33. usbIsochronousOutTransferPacket.https.any.js
  34. usbIsochronousOutTransferResult.https.any.js
  35. usbOutTransferResult.https.any.js
webusb/README.md

WebUSB Testing

WebUSB testing relies on the WebUSB Testing API which must be provided by browsers under test.

In this test suite resources/usb-helpers.js detects and triggers the API to be loaded as needed.

The Chromium implementation is provided by ../resources/chromium/webusb-test.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.