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