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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/characteristic/writeValue/gen-gatt-op-device-reconnects-during-error.html

Issue 2729433002: bluetooth: Better disconnected error messages for GATT operations. (Closed)
Patch Set: rebase Created 3 years, 9 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/characteristic/writeValue/gen-gatt-op-device-reconnects-during-error.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/characteristic/writeValue/gen-gatt-op-device-reconnects-during-error.html b/third_party/WebKit/LayoutTests/bluetooth/characteristic/writeValue/gen-gatt-op-device-reconnects-during-error.html
index 32057b46c5f76f562d9682187005f6db22ed47cd..2ffac617b3ce4eb60d98c66829143d3a60ca598d 100644
--- a/third_party/WebKit/LayoutTests/bluetooth/characteristic/writeValue/gen-gatt-op-device-reconnects-during-error.html
+++ b/third_party/WebKit/LayoutTests/bluetooth/characteristic/writeValue/gen-gatt-op-device-reconnects-during-error.html
@@ -16,7 +16,8 @@ promise_test(() => {
let disconnected = eventPromise(characteristic.service.device, 'gattserverdisconnected');
let promise = assert_promise_rejects_with_message(
characteristic.writeValue(val),
- new DOMException('GATT Server disconnected while performing a GATT operation.',
+ new DOMException('GATT Server is disconnected. Cannot perform GATT operations. ' +
+ '(Re)connect first with `device.gatt.connect`.',
'NetworkError'));
return disconnected.then(() => characteristic.service.device.gatt.connect())
.then(() => promise);

Powered by Google App Engine
This is Rietveld 408576698