| Index: third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/gen-service-delayed-discovery-no-permission-for-any-service-with-uuid.html
|
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/delayed-discovery-no-permission-present-service.html b/third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/gen-service-delayed-discovery-no-permission-for-any-service-with-uuid.html
|
| similarity index 54%
|
| copy from third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/delayed-discovery-no-permission-present-service.html
|
| copy to third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/gen-service-delayed-discovery-no-permission-for-any-service-with-uuid.html
|
| index 193943cb0a509fe137d8adbe10de20e8c3185ed1..044d543d7e10599b49207399b9753e920ac50925 100644
|
| --- a/third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/delayed-discovery-no-permission-present-service.html
|
| +++ b/third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/gen-service-delayed-discovery-no-permission-for-any-service-with-uuid.html
|
| @@ -1,3 +1,4 @@
|
| +<!-- Generated by //third_party/WebKit/LayoutTests/bluetooth/generate.py -->
|
| <!DOCTYPE html>
|
| <script src="../../resources/testharness.js"></script>
|
| <script src="../../resources/testharnessreport.js"></script>
|
| @@ -10,7 +11,13 @@ promise_test(() => {
|
| filters: [{name: 'Heart Rate Device'}]}))
|
| .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.');
|
| + gattServer.getPrimaryServices('heart_rate'),
|
| + new DOMException('Origin is not allowed to access any service. Tip: ' +
|
| + 'Add the service UUID to \'optionalServices\' in ' +
|
| + 'requestDevice() options. https://goo.gl/HxfxSQ',
|
| + 'SecurityError')));
|
| +}, 'Delayed service discovery, request for present service without ' +
|
| + 'permission to access any service. Reject with SecurityError.');
|
| +</script>
|
| +
|
| </script>
|
|
|