https://github.com/web-platform-tests/wpt
Raw File
Tip revision: d59f66bb3cb484d4253d2509e9a8c3a2575438d4 authored by Raymond Toy on 06 April 2018, 17:48:00 UTC
Move AudioNode tests to WPT
Tip revision: d59f66b
device-same-from-2-services.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 = 'Same parent device returned from multiple services.';

bluetooth_test(() => getTwoHealthThermometerServicesDevice({
  filters: [{services: ['health_thermometer']}]
})
    .then(({device}) => device.gatt.getPrimaryServices('health_thermometer'))
    .then(([service1, service2]) =>
        assert_equals(service1.device, service2.device)),
    test_desc);
</script>
back to top