Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(547)

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/descriptor/writeValue/gen-io-op-reconnect-during-success.html

Issue 2654403002: Implement WebBluetooth descriptor.writeValue() (Closed)
Patch Set: #4 Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698