https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 4fae1e45c3892f37065a107124e31d60b10b3c7b authored by David Storey on 23 March 2018, 00:50:21 UTC
Add focus composed test
Tip revision: 4fae1e4
device-same-object.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 = '[SameObject] test for BluetoothRemoteGATTService device.';

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