Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /bluetooth/legacy/requestDevice/acceptAllDevices/device-with-name.https.window.html - WPT Dashboard Interop Dashboard
// META: script=/resources/testdriver.js
// META: script=/resources/testdriver-vendor.js
// META: script=/bluetooth/resources/bluetooth-test.js
// META: script=/bluetooth/resources/bluetooth-fake-devices.js
const test_desc =
'A device with name and no UUIDs nearby. Should be found if ' +
'acceptAllDevices is true.';
const name = 'LE Device';
bluetooth_test(async () => {
let { device } = await setUpPreconnectedFakeDevice({
fakeDeviceOptions: {
name: name
},
requestDeviceOptions: {
acceptAllDevices: true
}
});
assert_equals(device.name, name);
}, test_desc);