summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/bluetooth/service/device-same-from-2-services.https.window.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/bluetooth/service/device-same-from-2-services.https.window.js')
-rw-r--r--testing/web-platform/tests/bluetooth/service/device-same-from-2-services.https.window.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/web-platform/tests/bluetooth/service/device-same-from-2-services.https.window.js b/testing/web-platform/tests/bluetooth/service/device-same-from-2-services.https.window.js
new file mode 100644
index 0000000000..5b2ba310d3
--- /dev/null
+++ b/testing/web-platform/tests/bluetooth/service/device-same-from-2-services.https.window.js
@@ -0,0 +1,14 @@
+// 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 device returned from multiple services.';
+
+bluetooth_test(async () => {
+ let {device} = await getTwoHealthThermometerServicesDevice(
+ {filters: [{services: ['health_thermometer']}]});
+ let [service1, service2] =
+ await device.gatt.getPrimaryServices('health_thermometer');
+ assert_equals(service1.device, service2.device);
+}, test_desc);