blob: 52c7e6c36fe48ff5657bc50fce70d541153349ce [file] [log] [blame]
<!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="../../resources/bluetooth/bluetooth-helpers.js"></script>
<script src="../../external/wpt/bluetooth/resources/bluetooth-helpers.js"></script>
<script>
'use strict';
bluetooth_test(
() => {return setBluetoothFakeAdapter('NoNameHeartRateAdapter')
.then(
() => requestDeviceWithTrustedClick(
{filters: [{services: ['heart_rate']}]}))
.then(device => {
assert_equals(device.name, null);
})},
'An unnamed device can be obtained by advertised service UUID.');
</script>