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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-garbage-collection-ran-during-success.js

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/script-tests/descriptor/io-op-garbage-collection-ran-during-success.js
diff --git a/third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-garbage-collection-ran-during-success.js b/third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-garbage-collection-ran-during-success.js
index 0d2ae3c5d134da87e5d41cef3b3fa997989c3e82..8dad4b49f54fad987cfbfb1dd0bc1fa50b4aae8a 100644
--- a/third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-garbage-collection-ran-during-success.js
+++ b/third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-garbage-collection-ran-during-success.js
@@ -1,6 +1,7 @@
'use strict';
promise_test(
() => {
+ let val = new Uint8Array([1]);
let promise;
return setBluetoothFakeAdapter('DisconnectingHealthThermometerAdapter')
.then(
@@ -15,7 +16,7 @@ promise_test(
characteristic.getDescriptor(user_description.name))
.then(descriptor => {
promise = assert_promise_rejects_with_message(
- descriptor.CALLS([readValue()]),
+ descriptor.CALLS([readValue()|writeValue(val)]),
new DOMException(
'GATT Server disconnected while performing a GATT operation.',
'NetworkError'));

Powered by Google App Engine
This is Rietveld 408576698