tor-browser

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

device-with-name.https.window.js (620B)


      1 // META: script=/resources/testdriver.js?feature=bidi
      2 // META: script=/resources/testdriver-vendor.js
      3 // META: script=/bluetooth/resources/bluetooth-test.js
      4 // META: script=/bluetooth/resources/bluetooth-fake-devices.js
      5 // META: timeout=long
      6 const test_desc =
      7    'A device with name and no UUIDs nearby. Should be found if ' +
      8    'acceptAllDevices is true.';
      9 const name = 'LE Device';
     10 
     11 bluetooth_bidi_test(async () => {
     12  let {device} = await setUpPreconnectedFakeDevice({
     13    fakeDeviceOptions: {name: name},
     14    requestDeviceOptions: {acceptAllDevices: true}
     15  });
     16  assert_equals(device.name, name);
     17 }, test_desc);