blob: dafd755fd1d49b48bcd0a2623a07a5f6855a8164 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// 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 = 'Same parent service returned from multiple characteristics.';
bluetooth_test(async () => {
const {service} = await getHealthThermometerService();
const characteristics = await Promise.all([
service.getCharacteristic('measurement_interval'),
service.getCharacteristic('temperature_measurement')
]);
assert_equals(characteristics[0].service, characteristics[1].service);
}, test_desc);
|