mirror of
https://github.com/servo/servo.git
synced 2025-08-17 03:15:34 +01:00
Update web-platform-tests to revision 2d68590d46a990bf28a08d6384a59962d2e56bf6
This commit is contained in:
parent
bc03d32142
commit
ad4cc3691e
135 changed files with 1613 additions and 341 deletions
|
@ -68,7 +68,11 @@ function fakeDeviceInitToDeviceInfo(guid, init) {
|
|||
var configInfo = {
|
||||
configurationValue: config.configurationValue,
|
||||
configurationName: stringToMojoString16(config.configurationName),
|
||||
interfaces: []
|
||||
selfPowered: false,
|
||||
remoteWakeup: false,
|
||||
maximumPower: 0,
|
||||
interfaces: [],
|
||||
extraData: new Uint8Array()
|
||||
};
|
||||
config.interfaces.forEach(iface => {
|
||||
var interfaceInfo = {
|
||||
|
@ -82,12 +86,17 @@ function fakeDeviceInitToDeviceInfo(guid, init) {
|
|||
subclassCode: alternate.interfaceSubclass,
|
||||
protocolCode: alternate.interfaceProtocol,
|
||||
interfaceName: stringToMojoString16(alternate.interfaceName),
|
||||
endpoints: []
|
||||
endpoints: [],
|
||||
extraData: new Uint8Array()
|
||||
};
|
||||
alternate.endpoints.forEach(endpoint => {
|
||||
var endpointInfo = {
|
||||
endpointNumber: endpoint.endpointNumber,
|
||||
packetSize: endpoint.packetSize,
|
||||
synchronizationType: device.mojom.UsbSynchronizationType.NONE,
|
||||
usageType: device.mojom.UsbUsageType.DATA,
|
||||
pollingInterval: 0,
|
||||
extraData: new Uint8Array()
|
||||
};
|
||||
switch (endpoint.direction) {
|
||||
case "in":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue