| Index: third_party/WebKit/LayoutTests/bluetooth/connect.html
|
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/connect.html b/third_party/WebKit/LayoutTests/bluetooth/connect.html
|
| index f69ff8f99a86df799e0226da21a6bbb2da5bada6..cf399342a2c6b3ffbab18dacab25399f6881a2dc 100644
|
| --- a/third_party/WebKit/LayoutTests/bluetooth/connect.html
|
| +++ b/third_party/WebKit/LayoutTests/bluetooth/connect.html
|
| @@ -124,34 +124,6 @@ promise_test(() => {
|
| }, testSpec.testName);
|
| });
|
|
|
| -// TODO(ortuno): Allow connections when the tab is in the background.
|
| -// This is a short term solution instead of implementing a tab indicator
|
| -// for bluetooth connections.
|
| -// https://crbug.com/579746
|
| -promise_test(() => {
|
| - return setBluetoothFakeAdapter('HeartRateAdapter')
|
| - .then(() => requestDeviceWithKeyDown({
|
| - filters: [{services: ['heart_rate']}]}))
|
| - .then(device => {
|
| - testRunner.setPageVisibility('hidden');
|
| - return assert_promise_rejects_with_message(
|
| - device.gatt.connect(),
|
| - new DOMException('Connection is only allowed while the page is visible. ' +
|
| - 'This is a temporary measure until we are able to ' +
|
| - 'effectively communicate to the user that a page is ' +
|
| - 'connected to a device.',
|
| - 'SecurityError'))
|
| - .then(() => {
|
| - assert_false(device.gatt.connected);
|
| - });
|
| - })
|
| - .then(() => testRunner.setPageVisibility('visible'))
|
| - .catch(error => {
|
| - testRunner.setPageVisibility('visible');
|
| - throw error;
|
| - });
|
| -}, 'Device should not be able to connect in background.');
|
| -
|
| promise_test(() => {
|
| return setBluetoothFakeAdapter('HeartRateAdapter')
|
| .then(() => requestDeviceWithKeyDown({
|
|
|