blob: 48fd13765b7dd417d4d2f4ecf3e93e40a1efbc1c [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(t => {
return setBluetoothFakeAdapter('EmptyNameHeartRateAdapter')
.then(
() => promise_rejects(
t, 'NotFoundError',
requestDeviceWithTrustedClick(
{filters: [{name: 'a', services: ['heart_rate']}]})));
}, 'An empty name device is not matched by a filter with a name.');
</script>