blob: f621118fb269f0b8ca1549c6808744231350f4bd [file] [log] [blame]
<!DOCTYPE html>
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<script src="../../../resources/bluetooth/bluetooth-helpers.js"></script>
<script src="../../../resources/bluetooth/web-bluetooth-test.js"></script>
<script src="../../../resources/mojo-helpers.js"></script>
<script>
'use strict';
promise_test(() => {
return getEmptyHealthThermometerDevice()
.then(({device}) => assert_promise_rejects_with_message(
device.gatt.getPrimaryServices(),
new DOMException('No Services found in device.', 'NotFoundError')));
}, 'Request for services in a device with no services. Reject with ' +
'NotFoundError.');
</script>