mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 21:28:04 +02:00
MozReview-Commit-ID: CSM0hnryiTp --HG-- rename : testing/web-platform/tests/content-security-policy/reporting/reporting-api-doesnt-send-reports-without-violation.https.sub.html => testing/web-platform/tests/content-security-policy/reporting-api/reporting-api-doesnt-send-reports-without-violation.https.sub.html rename : testing/web-platform/tests/content-security-policy/reporting/reporting-api-report-only-sends-reports-on-violation.https.sub.html => testing/web-platform/tests/content-security-policy/reporting-api/reporting-api-report-only-sends-reports-on-violation.https.sub.html rename : testing/web-platform/tests/content-security-policy/reporting/reporting-api-report-to-overrides-report-uri-1.https.sub.html => testing/web-platform/tests/content-security-policy/reporting-api/reporting-api-report-to-overrides-report-uri-1.https.sub.html rename : testing/web-platform/tests/content-security-policy/reporting/reporting-api-report-to-overrides-report-uri-2.https.sub.html => testing/web-platform/tests/content-security-policy/reporting-api/reporting-api-report-to-overrides-report-uri-2.https.sub.html rename : testing/web-platform/tests/content-security-policy/reporting/reporting-api-sends-reports-on-violation.https.sub.html => testing/web-platform/tests/content-security-policy/reporting-api/reporting-api-sends-reports-on-violation.https.sub.html
15 lines
586 B
JavaScript
15 lines
586 B
JavaScript
'use strict';
|
|
const test_desc = 'Request for absent characteristics with UUID. ' +
|
|
'Reject with NotFoundError.';
|
|
|
|
bluetooth_test(() => getEmptyHealthThermometerService()
|
|
.then(({service}) => assert_promise_rejects_with_message(
|
|
service.CALLS([
|
|
getCharacteristic('battery_level')|
|
|
getCharacteristics('battery_level')[UUID]
|
|
]),
|
|
new DOMException(
|
|
`No Characteristics matching UUID ${battery_level.uuid} found ` +
|
|
`in Service with UUID ${health_thermometer.uuid}.`,
|
|
'NotFoundError'))),
|
|
test_desc);
|