| Index: third_party/WebKit/LayoutTests/bluetooth/characteristic/getDescriptors/gen-gatt-op-disconnect-called-during-error-with-uuid.html
|
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/script-tests/characteristic/gatt-op-disconnect-called-during-error.js b/third_party/WebKit/LayoutTests/bluetooth/characteristic/getDescriptors/gen-gatt-op-disconnect-called-during-error-with-uuid.html
|
| similarity index 63%
|
| copy from third_party/WebKit/LayoutTests/bluetooth/script-tests/characteristic/gatt-op-disconnect-called-during-error.js
|
| copy to third_party/WebKit/LayoutTests/bluetooth/characteristic/getDescriptors/gen-gatt-op-disconnect-called-during-error-with-uuid.html
|
| index 2f8363e6186ead4b6b6bea6d71a54ce4679fc00b..a3374dff4c5b301aa41bb7fd41fc5f723f76cde9 100644
|
| --- a/third_party/WebKit/LayoutTests/bluetooth/script-tests/characteristic/gatt-op-disconnect-called-during-error.js
|
| +++ b/third_party/WebKit/LayoutTests/bluetooth/characteristic/getDescriptors/gen-gatt-op-disconnect-called-during-error-with-uuid.html
|
| @@ -1,3 +1,9 @@
|
| +<!-- Generated by //third_party/WebKit/LayoutTests/bluetooth/generate.py -->
|
| +<!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';
|
| promise_test(() => {
|
| let val = new Uint8Array([1]);
|
| @@ -10,8 +16,7 @@ promise_test(() => {
|
| .then(service => service.getCharacteristic(errorUUID(0xA1)))
|
| .then(error_characteristic => {
|
| let promise = assert_promise_rejects_with_message(
|
| - error_characteristic.CALLS([
|
| - readValue()| writeValue(val)| startNotifications()]),
|
| + error_characteristic.getDescriptors(user_description.name),
|
| new DOMException(
|
| 'GATT Server disconnected while performing a GATT operation.',
|
| 'NetworkError'));
|
| @@ -19,5 +24,7 @@ promise_test(() => {
|
| return promise;
|
| });
|
| });
|
| -}, 'disconnect() called during a FUNCTION_NAME call that fails. ' +
|
| +}, 'disconnect() called during a getDescriptors call that fails. ' +
|
| 'Reject with NetworkError.');
|
| +
|
| +</script>
|
|
|