blob: d436ff3d868d5e774cda04a20bde267c7f068c72 [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>
'use strict';
bluetooth_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>