blob: 3c2dcb7f8a66e173c180608e785f3b27bce6fb25 [file] [log] [blame] [edit]
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script src="/bluetooth/resources/bluetooth-helpers.js"></script>
<script>
const test_desc =
'A device with name and no UUIDs nearby. Should be found if ' +
'acceptAllDevices is true.';
const name = 'LE Device';
bluetooth_test(
() =>
setUpPreconnectedDevice({name: name})
.then(() => requestDeviceWithTrustedClick({acceptAllDevices: true}))
.then(device => assert_equals(device.name, name)),
test_desc);
</script>