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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/delayed-discovery-no-permission-present-service.html

Issue 2459523002: bluetooth: Return specific error if getPrimaryServices() is called without requesting access to any… (Closed)
Patch Set: s/foo/TestName/ Created 4 years, 1 month 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/getPrimaryServices/delayed-discovery-no-permission-present-service.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/delayed-discovery-no-permission-present-service.html b/third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/delayed-discovery-no-permission-present-service.html
index 193943cb0a509fe137d8adbe10de20e8c3185ed1..4512960efdcdbacc8e6a1f0ac6464da153efbf76 100644
--- a/third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/delayed-discovery-no-permission-present-service.html
+++ b/third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/delayed-discovery-no-permission-present-service.html
@@ -7,10 +7,11 @@
promise_test(() => {
return setBluetoothFakeAdapter('DelayedServicesDiscoveryAdapter')
.then(() => requestDeviceWithKeyDown({
- filters: [{name: 'Heart Rate Device'}]}))
+ filters: [{name: 'Heart Rate Device'}],
+ optionalServices: ['battery_service']}))
.then(device => device.gatt.connect())
.then(gattServer => assert_promise_rejects_with_message(
gattServer.getPrimaryServices(),
new DOMException('No Services found in device.', 'NotFoundError')));
-}, 'Delayed service discovery, request for present service without permission. Reject with NotFoundError.');
+}, 'Delayed service discovery, request for present service without permission for that service. Reject with NotFoundError.');
</script>

Powered by Google App Engine
This is Rietveld 408576698