| Index: third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/characteristics-not-found.html
|
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/characteristics-not-found.html b/third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/characteristics-not-found.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..49bef877b2d7ef71d44286f15eb0befba4977077
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/characteristics-not-found.html
|
| @@ -0,0 +1,17 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<script src="../resources/bluetooth-helpers.js"></script>
|
| +<script>
|
| +'use strict';
|
| +promise_test(() => {
|
| + testRunner.setBluetoothMockDataSet('MissingCharacteristicHeartRateAdapter');
|
| + return requestDeviceWithKeyDown({filters: [{services: ['heart_rate']}]})
|
| + .then(device => device.gatt.connect())
|
| + .then(gattServer => gattServer.getPrimaryService('heart_rate'))
|
| + .then(service => assert_promise_rejects_with_message(
|
| + service.getCharacteristics(),
|
| + new DOMException('No Characteristics found in service.',
|
| + 'NotFoundError')))
|
| +}, 'Request for absent characteristics. Reject with NotFoundError.');
|
| +</script>
|
|
|