| Index: third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-disconnect-called-during-success.html
|
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-disconnect-called-during-success.js b/third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-disconnect-called-during-success.html
|
| similarity index 72%
|
| copy from third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-disconnect-called-during-success.js
|
| copy to third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-disconnect-called-during-success.html
|
| index 2f764f84548cc1125500e3f7b0648badffe021bf..9e857bc2241afd22830c70ed9696a6a1401261f3 100644
|
| --- a/third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-disconnect-called-during-success.js
|
| +++ b/third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-disconnect-called-during-success.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(
|
| () => {
|
| @@ -17,7 +23,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'));
|
| @@ -26,5 +32,7 @@ promise_test(
|
| });
|
| });
|
| },
|
| - 'disconnect() called during a FUNCTION_NAME call that succeeds. ' +
|
| + 'disconnect() called during a writeValue call that succeeds. ' +
|
| 'Reject with NetworkError.');
|
| +
|
| +</script>
|
|
|