summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/bluetooth/service/device-same-object.https.window.js
blob: 97da769a9eac25b55e72ac9e44d6c3cf1442ec3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// META: script=/resources/testdriver.js
// META: script=/resources/testdriver-vendor.js
// META: script=/bluetooth/resources/bluetooth-test.js
// META: script=/bluetooth/resources/bluetooth-fake-devices.js
'use strict';
const test_desc = '[SameObject] test for BluetoothRemoteGATTService device.';

bluetooth_test(async () => {
  let {device} = await getHealthThermometerDevice(
      {filters: [{services: ['health_thermometer']}]});
  let service = await device.gatt.getPrimaryService('health_thermometer');
  assert_equals(service.device, device);
}, test_desc);