https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 32b86b82958c2f48931274b26840a1a4a45a8857 authored by Adam Rice on 20 March 2018, 12:30:43 UTC
Correctly reject in-progress body methods with AbortError
Tip revision: 32b86b8
single-filter-single-service.https.html
<!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="/bluetooth/resources/bluetooth-helpers.js"></script>
<script>
'use strict';
const test_desc = 'Simple filter selects matching device.';

bluetooth_test(() => setUpHealthThermometerAndHeartRateDevices()
    .then(() => requestDeviceWithTrustedClick({
      filters: [{services: ['health_thermometer']}]
    }))
    .then(device => assert_equals(device.name, 'Health Thermometer')),
    test_desc);
</script>
back to top