Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /bluetooth/legacy/characteristic/service-same-from-2-characteristics.https.window.html - WPT Dashboard Interop Dashboard
// 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);