device-with-empty-name.https.window.js (604B)
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 'use strict'; 7 const test_desc = 'Device with empty name and no UUIDs nearby. Should be ' + 8 'found if acceptAllDevices is true.'; 9 10 bluetooth_bidi_test(async () => { 11 let {device} = await setUpPreconnectedFakeDevice({ 12 fakeDeviceOptions: {name: ''}, 13 requestDeviceOptions: {acceptAllDevices: true} 14 }); 15 assert_equals(device.name, ''); 16 }, test_desc);