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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryService/reconnect-during-error.html

Issue 2652163002: bluetooth: Improve GATT disconnected error message. (Closed)
Patch Set: Merge TOT 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/server/getPrimaryService/reconnect-during-error.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryService/reconnect-during-error.html b/third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryService/reconnect-during-error.html
index f0aebe605688fc91c51b570473c8c2e5a31b8957..44896d5b226ec8bc183c6d8946568ad93527b9ab 100644
--- a/third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryService/reconnect-during-error.html
+++ b/third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryService/reconnect-during-error.html
@@ -13,7 +13,9 @@ promise_test(() => {
.then(gattServer => {
let promise = assert_promise_rejects_with_message(
gattServer.getPrimaryService('battery_service'),
- new DOMException('GATT Server disconnected while retrieving services.',
+ new DOMException('GATT Server is disconnected. ' +
+ 'Cannot retrieve services. ' +
+ '(Re)connect first with `device.gatt.connect`.',
'NetworkError'));
gattServer.disconnect();
return gattServer.connect().then(() => promise);

Powered by Google App Engine
This is Rietveld 408576698