blob: b64594f959dc5e413b6802b41510cb7a5d58debe [file] [log] [blame]
<!DOCTYPE html>
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<script src="../../../resources/bluetooth/bluetooth-helpers.js"></script>
<script src="../../../resources/mojo-helpers.js"></script>
<script src="../../../resources/bluetooth/web-bluetooth-test.js"></script>
<script>
'use strict';
promise_test(() => {
return setUpPreconnectedDevice({name: ''})
.then(() => requestDeviceWithKeyDown({acceptAllDevices: true}))
.then(device => {
assert_equals(device.name, '');
});
}, 'Device with empty name and no UUIDs nearby. Should be found if ' +
'acceptAllDevices is true.');
</script>