blob: 2bce867a8bd98cea6680e35b837a65bd177867a0 [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 => {
// Both devices support the Heart Rate service, but things need to
// support both services to pass the filter, and neither has a Battery
// service.
return setBluetoothFakeAdapter('GlucoseHeartRateAdapter')
.then(
() => promise_rejects(
t, 'NotFoundError',
requestDeviceWithTrustedClick(
{filters: [{services: ['heart_rate', 'battery_service']}]})));
}, 'Too-strict filters do prevent matching.');
</script>