| Index: third_party/WebKit/LayoutTests/usb/resources/webusb-test.js
|
| diff --git a/third_party/WebKit/LayoutTests/usb/resources/webusb-test.js b/third_party/WebKit/LayoutTests/usb/resources/webusb-test.js
|
| index bec6876bb29b47333c2c84084cc9f002c8f40b08..6420bfe7b700b2d1b8c3bf2932e908267b7275c2 100644
|
| --- a/third_party/WebKit/LayoutTests/usb/resources/webusb-test.js
|
| +++ b/third_party/WebKit/LayoutTests/usb/resources/webusb-test.js
|
| @@ -1,71 +1,7 @@
|
| 'use strict';
|
|
|
| -// This polyfil library implements the following WebIDL:
|
| -//
|
| -// partial interface USB {
|
| -// [SameObject] readonly attribute USBTest test;
|
| -// }
|
| -//
|
| -// interface USBTest {
|
| -// attribute EventHandler ondeviceclose;
|
| -// attribute FakeUSBDevice? chosenDevice;
|
| -// attribute FrozenArray<USBDeviceFilter>? lastFilters;
|
| -//
|
| -// Promise<void> initialize();
|
| -// Promise<void> attachToWindow(Window window);
|
| -// FakeUSBDevice addFakeDevice(FakeUSBDeviceInit deviceInit);
|
| -// void reset();
|
| -// };
|
| -//
|
| -// interface FakeUSBDevice {
|
| -// void disconnect();
|
| -// };
|
| -//
|
| -// dictionary FakeUSBDeviceInit {
|
| -// octet usbVersionMajor;
|
| -// octet usbVersionMinor;
|
| -// octet usbVersionSubminor;
|
| -// octet deviceClass;
|
| -// octet deviceSubclass;
|
| -// octet deviceProtocol;
|
| -// unsigned short vendorId;
|
| -// unsigned short productId;
|
| -// octet deviceVersionMajor;
|
| -// octet deviceVersionMinor;
|
| -// octet deviceVersionSubminor;
|
| -// DOMString? manufacturerName;
|
| -// DOMString? productName;
|
| -// DOMString? serialNumber;
|
| -// octet activeConfigurationValue = 0;
|
| -// sequence<FakeUSBConfigurationInit> configurations;
|
| -// };
|
| -//
|
| -// dictionary FakeUSBConfigurationInit {
|
| -// octet configurationValue;
|
| -// DOMString? configurationName;
|
| -// sequence<FakeUSBInterfaceInit> interfaces;
|
| -// };
|
| -//
|
| -// dictionary FakeUSBInterfaceInit {
|
| -// octet interfaceNumber;
|
| -// sequence<FakeUSBAlternateInterfaceInit> alternates;
|
| -// };
|
| -//
|
| -// dictionary FakeUSBAlternateInterfaceInit {
|
| -// octet alternateSetting;
|
| -// octet interfaceClass;
|
| -// octet interfaceSubclass;
|
| -// octet interfaceProtocol;
|
| -// DOMString? interfaceName;
|
| -// sequence<FakeUSBEndpointInit> endpoints;
|
| -// };
|
| -//
|
| -// dictionary FakeUSBEndpointInit {
|
| -// octet endpointNumber;
|
| -// USBDirection direction;
|
| -// USBEndpointType type;
|
| -// unsigned long packetSize;
|
| -// };
|
| +// This polyfill library implements the WebUSB Test API as specified here:
|
| +// https://wicg.github.io/webusb/test/
|
|
|
| (() => {
|
|
|
|
|