| Index: third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/disconnect-called-before-with-uuid.html
|
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/getPrimaryService/delayed-discovery-service-not-found.html b/third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/disconnect-called-before-with-uuid.html
|
| similarity index 52%
|
| copy from third_party/WebKit/LayoutTests/bluetooth/getPrimaryService/delayed-discovery-service-not-found.html
|
| copy to third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/disconnect-called-before-with-uuid.html
|
| index 93a68e0d4946a88b26ef2d3be97e48e0ca7706c3..02ff61d001b6371f36d57dc0c99a9ec0d0756246 100644
|
| --- a/third_party/WebKit/LayoutTests/bluetooth/getPrimaryService/delayed-discovery-service-not-found.html
|
| +++ b/third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/disconnect-called-before-with-uuid.html
|
| @@ -5,17 +5,17 @@
|
| <script>
|
| 'use strict';
|
| promise_test(() => {
|
| - return setBluetoothFakeAdapter('DelayedServicesDiscoveryAdapter')
|
| + return setBluetoothFakeAdapter('TwoHeartRateServicesAdapter')
|
| .then(() => requestDeviceWithKeyDown({
|
| filters: [{services: ['heart_rate']}],
|
| - optionalServices: ['battery_service']}))
|
| + optionalServices: ['generic_access']}))
|
| .then(device => device.gatt.connect())
|
| .then(gattServer => {
|
| + gattServer.disconnect();
|
| return assert_promise_rejects_with_message(
|
| - gattServer.getPrimaryService('battery_service'),
|
| - new DOMException('No Services with specified UUID found in Device.',
|
| - 'NotFoundError'));
|
| + gattServer.getPrimaryServices('heart_rate'),
|
| + new DOMException('GATT Server is disconnected. Cannot retrieve services.',
|
| + 'NetworkError'));
|
| });
|
| -}, 'Request for absent service. Must reject with NotFoundError even when the ' +
|
| - 'services are not immediately discovered');
|
| +}, 'disconnect() called before getPrimaryServices. Reject with NetworkError.');
|
| </script>
|
|
|