https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 88aea18be3e13ecfe9c14568cf8795abd54ada08 authored by Joe Downing on 11 April 2018, 01:49:46 UTC
[KeyboardLock] Updating API to reject the first promise if lock is called twice
Tip revision: 88aea18
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