| Index: third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-disconnect-called-during-error.html
|
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-disconnect-called-during-error.js b/third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-disconnect-called-during-error.html
|
| similarity index 71%
|
| copy from third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-disconnect-called-during-error.js
|
| copy to third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-disconnect-called-during-error.html
|
| index 890a3da2fcce51f42395e72320fc735e7d18a527..5d5bc150d6350e732598631eeef53b66bccadfb0 100644
|
| --- a/third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-disconnect-called-during-error.js
|
| +++ b/third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-disconnect-called-during-error.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(
|
| () => {
|
| @@ -15,7 +21,7 @@ promise_test(
|
| characteristic.getDescriptor(user_description.name))
|
| .then(descriptor => {
|
| let promise = assert_promise_rejects_with_message(
|
| - descriptor.CALLS([readValue()]),
|
| + descriptor.writeValue(val),
|
| new DOMException(
|
| 'GATT Server disconnected while performing a GATT operation.',
|
| 'NetworkError'));
|
| @@ -24,5 +30,7 @@ promise_test(
|
| });
|
| });
|
| },
|
| - 'disconnect() called during a FUNCTION_NAME call that fails. ' +
|
| + 'disconnect() called during a writeValue call that fails. ' +
|
| 'Reject with NetworkError.');
|
| +
|
| +</script>
|
|
|