| Index: third_party/WebKit/LayoutTests/bluetooth/requestDevice/not-processing-user-gesture.html
|
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/connect/connection-succeeds.html b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/not-processing-user-gesture.html
|
| similarity index 54%
|
| copy from third_party/WebKit/LayoutTests/bluetooth/connect/connection-succeeds.html
|
| copy to third_party/WebKit/LayoutTests/bluetooth/requestDevice/not-processing-user-gesture.html
|
| index 97321810f6448a46bc4df13cc53d2c90b0ca6940..908763cd49321226d0ba3916d4e7a4860638043d 100644
|
| --- a/third_party/WebKit/LayoutTests/bluetooth/connect/connection-succeeds.html
|
| +++ b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/not-processing-user-gesture.html
|
| @@ -4,11 +4,10 @@
|
| <script src="../../resources/bluetooth/bluetooth-helpers.js"></script>
|
| <script>
|
| 'use strict';
|
| -promise_test(() => {
|
| +promise_test(t => {
|
| return setBluetoothFakeAdapter('HeartRateAdapter')
|
| - .then(() => requestDeviceWithKeyDown({
|
| - filters: [{services: ['heart_rate']}]}))
|
| - .then(device => device.gatt.connect())
|
| - .then(gattServer => assert_true(gattServer.connected));
|
| -}, 'Device will connect');
|
| + .then(() => promise_rejects(
|
| + t, 'SecurityError', navigator.bluetooth.requestDevice({
|
| + filters: [{services: ['heart_rate']}]})));
|
| +}, 'Requires a user gesture.');
|
| </script>
|
|
|