tree: dbfd3827b8f7ee799191e4d41f5f6b1d95c9d2b2 [path history] [tgz]
  1. getDevices/
  2. requestDevice/
  3. resources/
  4. idlharness.https.any.js
  5. insecure-context.any.js
  6. META.yml
  7. protected-interface-classes.https.any.js
  8. README.md
  9. usb-allowed-by-permissions-policy-attribute-redirect-on-load.https.sub.html
  10. usb-allowed-by-permissions-policy-attribute.https.sub.html
  11. usb-allowed-by-permissions-policy.https.sub.html
  12. usb-allowed-by-permissions-policy.https.sub.html.headers
  13. usb-default-permissions-policy.https.sub.html
  14. usb-disabled-by-permissions-policy.https.sub.html
  15. usb-disabled-by-permissions-policy.https.sub.html.headers
  16. usb-garbage-collection.https.window.js
  17. usb-supported-by-permissions-policy.html
  18. usb.https.any.js
  19. usb.https.window.js
  20. usb.serviceworker.https.html
  21. usb.serviceworker.js
  22. usbAlternateInterface.https.any.js
  23. usbConfiguration.https.any.js
  24. usbConnectionEvent.https.any.js
  25. usbDevice-iframe.https.html
  26. usbDevice-same-objecct.https.any.js
  27. usbDevice-worker.https.html
  28. usbDevice.https.any.js
  29. usbDevice_claimInterface-manual.https.html
  30. usbDevice_controlTransferIn-manual.https.html
  31. usbDevice_forget-manual.https.html
  32. usbDevice_reset-manual.https.html
  33. usbDevice_transferIn-manual.https.html
  34. usbEndpoint.https.any.js
  35. usbInterface.https.any.js
  36. usbInTransferResult.https.any.js
  37. usbIsochronousInTransferPacket.https.any.js
  38. usbIsochronousInTransferResult.https.any.js
  39. usbIsochronousOutTransferPacket.https.any.js
  40. usbIsochronousOutTransferResult.https.any.js
  41. usbOutTransferResult.https.any.js
  42. WEB_FEATURES.yml
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.