blob: ebcd49d303a5ec872d37d71798de8bd51a57626a [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('NoNameHeartRateAdapter')
.then(
() => promise_rejects(
t, 'NotFoundError',
requestDeviceWithTrustedClick(
{filters: [{name: 'a', services: ['heart_rate']}]})));
}, 'An unnamed device can not be obtained by name filter.');
</script>