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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/disconnected-device.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/getPrimaryServices/disconnected-device.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/disconnected-device.html b/third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/disconnected-device.html
index ac78bc456398d72d489d2e1dccc80f90444ed805..465eef59fc4b82779c59e985cd2d4cd6938b495f 100644
--- a/third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/disconnected-device.html
+++ b/third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/disconnected-device.html
@@ -10,7 +10,9 @@ promise_test(() => {
filters: [{services: ['heart_rate']}]}))
.then(device => assert_promise_rejects_with_message(
device.gatt.getPrimaryServices(),
- new DOMException('GATT Server is disconnected. Cannot retrieve services.',
+ new DOMException('GATT Server is disconnected. ' +
+ 'Cannot retrieve services. ' +
+ '(Re)connect first with `device.gatt.connect`.',
'NetworkError')));
}, 'getPrimaryServices() called before connecting. Reject with NetworkError.');
</script>

Powered by Google App Engine
This is Rietveld 408576698