https://github.com/web-platform-tests/wpt
Raw File
Tip revision: f0f68cccb916d714a702a77f2cef0954db937af0 authored by Chris Nardi on 29 March 2018, 23:36:08 UTC
Check that specName is in URLs
Tip revision: f0f68cc
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