blob: 5c153eb0a90abd3f937502eb80a4800b8687e5aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// META: script=/resources/test-only-api.js
// META: script=/webusb/resources/fake-devices.js
// META: script=/webusb/resources/usb-helpers.js
// META: script=/common/gc.js
'use strict';
usb_test(async () => {
{
let {device} = await getFakeDevice();
await device.open();
await device.selectConfiguration(2);
await device.claimInterface(0);
}
await garbageCollect();
}, 'Run garbage collection when the device reference is out of scope');
|