blob: add8fb1a760dffaf78be28f9b5bad70932acfcc4 [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: [{namePrefix: 'a', services: ['heart_rate']}]})));
}, 'An empty name device is not matched by a filter with a namePrefix.');
</script>