blob: 26c99786c37ba23a7ceec7cbd514cd0103f4460b [file] [log] [blame]
// META: script=/resources/test-only-api.js
// META: script=/webusb/resources/fake-devices.js
// META: script=/webusb/resources/usb-helpers.js
'use strict';
usb_test(async () => {
{
let {device} = await getFakeDevice();
await device.open();
await device.selectConfiguration(2);
await device.claimInterface(0);
}
return runGarbageCollection();
}, 'Run garbage collection when the device reference is out of scope');