Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Unified Diff: third_party/WebKit/LayoutTests/usb/resources/webusb-test.js

Issue 2829643003: Add link to WebUSB Test API specification (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/
(() => {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698