diff options
Diffstat (limited to '')
-rw-r--r-- | testing/web-platform/tests/bluetooth/requestDevice/single-filter-single-service.https.window.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/web-platform/tests/bluetooth/requestDevice/single-filter-single-service.https.window.js b/testing/web-platform/tests/bluetooth/requestDevice/single-filter-single-service.https.window.js new file mode 100644 index 0000000000..67afad0b93 --- /dev/null +++ b/testing/web-platform/tests/bluetooth/requestDevice/single-filter-single-service.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 = 'Simple filter selects matching device.'; + +bluetooth_test( + () => setUpHealthThermometerAndHeartRateDevices() + .then( + () => requestDeviceWithTrustedClick( + {filters: [{services: ['health_thermometer']}]})) + .then(device => assert_equals(device.name, 'Health Thermometer')), + test_desc); |