| Index: third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-disconnect-called-before.html
|
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-disconnect-called-before.js b/third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-disconnect-called-before.html
|
| similarity index 68%
|
| copy from third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-disconnect-called-before.js
|
| copy to third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-disconnect-called-before.html
|
| index f2b7b9d5c4ddf8f88b2e21cd7f40c13811222eed..31f741db21ce7e71a937c7aa31bcd12eb97280f9 100644
|
| --- a/third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-disconnect-called-before.js
|
| +++ b/third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-disconnect-called-before.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]);
|
| @@ -15,10 +21,12 @@ promise_test(() => {
|
| .then(descriptor => {
|
| gattServer.disconnect();
|
| return assert_promise_rejects_with_message(
|
| - descriptor.CALLS([readValue()]),
|
| + descriptor.writeValue(val),
|
| new DOMException(
|
| 'GATT Server is disconnected. Cannot perform GATT operations.',
|
| 'NetworkError'));
|
| });
|
| });
|
| -}, 'disconnect() called before FUNCTION_NAME. Reject with NetworkError.');
|
| +}, 'disconnect() called before writeValue. Reject with NetworkError.');
|
| +
|
| +</script>
|
|
|