chromium/third_party/blink/web_tests/external/wpt/permissions-policy/resources/permissions-policy-usb.html

<script>
'use strict';

Promise.resolve().then(() => navigator.usb.getDevices()).then(devices => {
  window.parent.postMessage({ type: 'availability-result', enabled: true }, '*');
}, error => {
  window.parent.postMessage({ type: 'availability-result', enabled: false }, '*');
});
</script>