Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /bluetooth/bidi/server/getPrimaryServices/gen-service-not-found-with-uuid.https.window.html - WPT Dashboard Interop Dashboard
// META: script=/resources/testdriver.js?feature=bidi
// META: script=/resources/testdriver-vendor.js
// META: script=/common/gc.js
// META: script=/bluetooth/resources/bluetooth-test.js
// META: script=/bluetooth/resources/bluetooth-fake-devices.js
// META: timeout=long
// Generated by
// //bluetooth/bidi/generate.py
'use strict';
const test_desc = 'Request for absent service. Reject with NotFoundError.';
bluetooth_bidi_test(
() => getHealthThermometerDevice({
filters: [{services: ['health_thermometer']}],
optionalServices: ['glucose']
})
.then(
({device}) => assert_promise_rejects_with_message(
device.gatt.getPrimaryServices('glucose'),
new DOMException(
`No Services matching UUID ${
glucose.uuid} found in Device.`,
'NotFoundError'))),
test_desc);