summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/bluetooth/characteristic/characteristicProperties.https.window.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/bluetooth/characteristic/characteristicProperties.https.window.js')
-rw-r--r--testing/web-platform/tests/bluetooth/characteristic/characteristicProperties.https.window.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/web-platform/tests/bluetooth/characteristic/characteristicProperties.https.window.js b/testing/web-platform/tests/bluetooth/characteristic/characteristicProperties.https.window.js
new file mode 100644
index 0000000000..f7a57a9c4b
--- /dev/null
+++ b/testing/web-platform/tests/bluetooth/characteristic/characteristicProperties.https.window.js
@@ -0,0 +1,22 @@
+// 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 = 'HeartRate device properties';
+
+bluetooth_test(async () => {
+ const {service} = await getHealthThermometerService()
+ const [temperature_measurement, measurement_interval] = await Promise.all([
+ service.getCharacteristic('temperature_measurement'),
+ service.getCharacteristic('measurement_interval')
+ ]);
+ const tm_expected_properties = new TestCharacteristicProperties(['indicate']);
+ assert_properties_equal(
+ temperature_measurement.properties, tm_expected_properties);
+
+ const mi_expected_properties =
+ new TestCharacteristicProperties(['read', 'write', 'indicate']);
+ assert_properties_equal(
+ measurement_interval.properties, mi_expected_properties);
+}, test_desc);