tree: 71e34cf0f2be2c6e3873f11c42cfded78d397e83 [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-garbage-collection.https.window.js
  15. usb-supported-by-feature-policy.html
  16. usb.https.any.js
  17. usb.https.window.js
  18. usb.serviceworker.https.html
  19. usb.serviceworker.js
  20. usbAlternateInterface.https.any.js
  21. usbConfiguration.https.any.js
  22. usbConnectionEvent.https.any.js
  23. usbDevice-iframe.https.html
  24. usbDevice-same-objecct.https.any.js
  25. usbDevice-worker.https.html
  26. usbDevice.https.any.js
  27. usbDevice_claimInterface-manual.https.html
  28. usbDevice_controlTransferIn-manual.https.html
  29. usbDevice_forget-manual.https.html
  30. usbDevice_reset-manual.https.html
  31. usbDevice_transferIn-manual.https.html
  32. usbEndpoint.https.any.js
  33. usbInterface.https.any.js
  34. usbInTransferResult.https.any.js
  35. usbIsochronousInTransferPacket.https.any.js
  36. usbIsochronousInTransferResult.https.any.js
  37. usbIsochronousOutTransferPacket.https.any.js
  38. usbIsochronousOutTransferResult.https.any.js
  39. 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.