tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

usb-garbage-collection.https.window.js (461B)


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