OLD | NEW |
1 'use strict'; | 1 'use strict'; |
2 | 2 |
3 // This polyfill library implements the WebUSB Test API as specified here: | 3 // This polyfill library implements the WebUSB Test API as specified here: |
4 // https://wicg.github.io/webusb/test/ | 4 // https://wicg.github.io/webusb/test/ |
5 | 5 |
6 (() => { | 6 (() => { |
7 | 7 |
8 // These variables are logically members of the USBTest class but are defined | 8 // These variables are logically members of the USBTest class but are defined |
9 // here to hide them from being visible as fields of navigator.usb.test. | 9 // here to hide them from being visible as fields of navigator.usb.test. |
10 let internal = { | 10 let internal = { |
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 internal.chooser.setChosenDevice(null); | 510 internal.chooser.setChosenDevice(null); |
511 resolve(); | 511 resolve(); |
512 }, 0); | 512 }, 0); |
513 }); | 513 }); |
514 } | 514 } |
515 } | 515 } |
516 | 516 |
517 navigator.usb.test = new USBTest(); | 517 navigator.usb.test = new USBTest(); |
518 | 518 |
519 })(); | 519 })(); |
OLD | NEW |