https://github.com/web-platform-tests/wpt
Raw File
Tip revision: cd5bb894656e15405f1ab638cda9b24608e19f86 authored by Geoffrey Sneddon on 30 April 2018, 13:10:40 UTC
fixup! Fix #2669: Add alternate_hosts
Tip revision: cd5bb89
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