| Index: third_party/WebKit/LayoutTests/bluetooth/getPrimaryService/gen-service-no-permission-for-any-service.html
|
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/getPrimaryService/gen-service-no-permission-for-any-service.html b/third_party/WebKit/LayoutTests/bluetooth/getPrimaryService/gen-service-no-permission-for-any-service.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..85592cf6fbe3350afd765669e4a20c2015a2a092
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/bluetooth/getPrimaryService/gen-service-no-permission-for-any-service.html
|
| @@ -0,0 +1,23 @@
|
| +<!-- Generated by //third_party/WebKit/LayoutTests/bluetooth/generate.py -->
|
| +<!DOCTYPE html>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<script src="../../resources/bluetooth/bluetooth-helpers.js"></script>
|
| +<script>
|
| +'use strict';
|
| +promise_test(() => {
|
| + return setBluetoothFakeAdapter('HeartRateAdapter')
|
| + .then(() => requestDeviceWithKeyDown({
|
| + filters: [{name: 'Heart Rate Device'}]}))
|
| + .then(device => device.gatt.connect())
|
| + .then(gattServer => assert_promise_rejects_with_message(
|
| + gattServer.getPrimaryService('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')));
|
| +}, 'Request for present service without permission to access any service. ' +
|
| + 'Reject with SecurityError.');
|
| +</script>
|
| +
|
| +</script>
|
|
|