| Index: third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/gen-service-delayed-discovery-no-permission-for-any-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/gen-service-delayed-discovery-no-permission-for-any-service.html
|
| similarity index 58%
|
| 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.html
|
| index 193943cb0a509fe137d8adbe10de20e8c3185ed1..7d406f76f0f11df4e06a48b0db182e222b4e3316 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.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>
|
| @@ -11,6 +12,12 @@ promise_test(() => {
|
| .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.');
|
| + 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>
|
|
|