https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 8aa53dd361f53703c6c67c4b007a472832a855a2 authored by Marcos Cáceres on 22 November 2018, 02:14:30 UTC
fix: copy pasta
Tip revision: 8aa53dd
usb.serviceworker.js
'use strict';
importScripts('/resources/testharness.js');

test(() => {
  assert_equals(typeof navigator.usb, 'undefined',
      'navigator.usb should not be a USB object');
}, 'Service workers should not have access to the WebUSB API.');

done();
back to top