| Index: third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-reconnect-during-success.html
|
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-io-op-reconnect-during-error.html b/third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-reconnect-during-success.html
|
| similarity index 82%
|
| copy from third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-io-op-reconnect-during-error.html
|
| copy to third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-reconnect-during-success.html
|
| index 5a1516f900af330fd21ceeac6bafd5c87f283e55..f55f7c54758ebbb8a849b5d85abd8e12fc01ccf3 100644
|
| --- a/third_party/WebKit/LayoutTests/bluetooth/descriptor/readValue/gen-io-op-reconnect-during-error.html
|
| +++ b/third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-reconnect-during-success.html
|
| @@ -6,8 +6,9 @@
|
| <script>
|
| promise_test(
|
| () => {
|
| + let val = new Uint8Array([1]);
|
| return setBluetoothFakeAdapter(
|
| - 'GATTOperationFailsAfterReconnectionAdapter')
|
| + 'GATTOperationSucceedsAfterReconnectionAdapter')
|
| .then(
|
| () => requestDeviceWithKeyDown(
|
| {filters: [{services: ['health_thermometer']}]}))
|
| @@ -19,7 +20,7 @@ promise_test(
|
| characteristic.getDescriptor(user_description.name))
|
| .then(descriptor => {
|
| let promise = assert_promise_rejects_with_message(
|
| - descriptor.readValue(),
|
| + descriptor.writeValue(val),
|
| new DOMException(
|
| 'GATT Server disconnected while performing a GATT operation.',
|
| 'NetworkError'));
|
| @@ -28,7 +29,7 @@ promise_test(
|
| return gatt.connect().then(() => promise);
|
| });
|
| },
|
| - 'disconnect() and connect() called during a readValue call that ' +
|
| - 'fails. Reject with NetworkError.');
|
| + 'disconnect() and connect() called during a writeValue call that ' +
|
| + 'succeeds. Reject with NetworkError.');
|
|
|
| </script>
|
|
|