blob: 444d66a3e4499ab211372d1ddf30720949ffadaa [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: [{namePrefix: 'a', services: ['heart_rate']}]})));
}, 'An unnamed device can not be obtained by namePrefix filter.');
</script>