| Index: third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/disconnect-called-during-with-uuid.html
|
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/device-goes-out-of-range.html b/third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/disconnect-called-during-with-uuid.html
|
| similarity index 58%
|
| copy from third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/device-goes-out-of-range.html
|
| copy to third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/disconnect-called-during-with-uuid.html
|
| index ba3ba17a70876ed09e8c277190243ba875e6eecd..1daacb7dacbdc6ec0d470b66360327e61d27a0ba 100644
|
| --- a/third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/device-goes-out-of-range.html
|
| +++ b/third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/disconnect-called-during-with-uuid.html
|
| @@ -11,12 +11,12 @@ promise_test(() => {
|
| optionalServices: ['generic_access']}))
|
| .then(device => device.gatt.connect())
|
| .then(gattServer => {
|
| - return setBluetoothFakeAdapter('EmptyAdapter')
|
| - .then(() => assert_promise_rejects_with_message(
|
| - gattServer.getPrimaryServices(),
|
| - new DOMException('Bluetooth Device is no longer in range.',
|
| - 'NetworkError'),
|
| - 'Device went out of range.'));
|
| + let promise = assert_promise_rejects_with_message(
|
| + gattServer.getPrimaryServices('heart_rate'),
|
| + new DOMException('GATT Server disconnected while retrieving services.',
|
| + 'NetworkError'));
|
| + gattServer.disconnect();
|
| + return promise;
|
| });
|
| -}, 'Device goes out of range. Reject with NetworkError.');
|
| +}, 'disconnect() called during getPrimaryServices. Reject with NetworkError.');
|
| </script>
|
|
|