| Index: third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/device-reconnects-during-error-with-uuid.html
|
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/getPrimaryService/device-reconnects-during.html b/third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/device-reconnects-during-error-with-uuid.html
|
| similarity index 74%
|
| rename from third_party/WebKit/LayoutTests/bluetooth/getPrimaryService/device-reconnects-during.html
|
| rename to third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/device-reconnects-during-error-with-uuid.html
|
| index 2f6791b68b32dbdd0ef4bddf511e86f79b9b9dee..bb98f4f84e534d52ce669ac7b9840c37563629e6 100644
|
| --- a/third_party/WebKit/LayoutTests/bluetooth/getPrimaryService/device-reconnects-during.html
|
| +++ b/third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/device-reconnects-during-error-with-uuid.html
|
| @@ -7,16 +7,18 @@
|
| promise_test(() => {
|
| return setBluetoothFakeAdapter('DisconnectingDuringServiceRetrievalAdapter')
|
| .then(() => requestDeviceWithKeyDown({
|
| - filters: [{services: ['heart_rate']}]}
|
| + filters: [{services: ['heart_rate']}],
|
| + optionalServices: ['battery_service']}
|
| ))
|
| .then(device => device.gatt.connect())
|
| .then(gatt => {
|
| let disconnected = eventPromise(gatt.device, 'gattserverdisconnected');
|
| let promise = assert_promise_rejects_with_message(
|
| - gatt.getPrimaryService('heart_rate'),
|
| + gatt.getPrimaryServices('battery_service'),
|
| new DOMException('GATT Server disconnected while retrieving services.',
|
| 'NetworkError'));
|
| return disconnected.then(() => gatt.connect()).then(() => promise);
|
| });
|
| -}, 'Device disconnects during getPrimaryService. Reject with NetworkError.');
|
| +}, 'Device disconnects and we reconnect during a getPrimaryServices call ' +
|
| + 'that fails. Reject with NetworkError.');
|
| </script>
|
|
|