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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/service/getCharacteristic/disconnect-called-during.html

Issue 2721233002: bluetooth: Better disconnected error messages for characteristic retrieval. (Closed)
Patch Set: Address dcheng's comments 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/service/getCharacteristic/disconnect-called-during.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/service/getCharacteristic/disconnect-called-during.html b/third_party/WebKit/LayoutTests/bluetooth/service/getCharacteristic/disconnect-called-during.html
index 454402fcc3cab664d374d352b6a0148ed7a8aa2b..0399d0efc9c05dce5bee51bebe5e8eee07c6d592 100644
--- a/third_party/WebKit/LayoutTests/bluetooth/service/getCharacteristic/disconnect-called-during.html
+++ b/third_party/WebKit/LayoutTests/bluetooth/service/getCharacteristic/disconnect-called-during.html
@@ -15,7 +15,8 @@ promise_test(() => {
let promise = assert_promise_rejects_with_message(
heart_rate_service.getCharacteristic('heart_rate_measurement'),
new DOMException(
- 'GATT Server disconnected while retrieving characteristics.',
+ 'GATT Server is disconnected. Cannot retrieve characteristics. ' +
+ '(Re)connect first with `device.gatt.connect`.',
'NetworkError'));
gattServer.disconnect();
return promise;

Powered by Google App Engine
This is Rietveld 408576698