blob: 90cbf55ef68c87e9943ce63679f38ad6d53af48f [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>
'use strict';
bluetooth_test(t => {
return setBluetoothFakeAdapter('HeartRateAdapter')
.then(() => promise_rejects(
t, 'NotFoundError', requestDeviceWithKeyDown({
filters: [{
name: '',
services: ['heart_rate']
}]})));
}, 'A named device is not matched by a filter with an empty name.');
</script>