| Index: third_party/WebKit/LayoutTests/bluetooth/script-tests/service-device-disconnects-invalidates-objects.js
|
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/script-tests/service-device-disconnects-invalidates-objects.js b/third_party/WebKit/LayoutTests/bluetooth/script-tests/service-device-disconnects-invalidates-objects.js
|
| deleted file mode 100644
|
| index dfd37d562cdb977f725ffcf0f1ba99c769e5aebc..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/LayoutTests/bluetooth/script-tests/service-device-disconnects-invalidates-objects.js
|
| +++ /dev/null
|
| @@ -1,50 +0,0 @@
|
| -'use strict';
|
| -promise_test(() => {
|
| - return setBluetoothFakeAdapter('DisconnectingHealthThermometerAdapter')
|
| - .then(() => requestDeviceWithKeyDown({
|
| - filters: [{services: ['health_thermometer']}],
|
| - optionalServices: [request_disconnection_service_uuid]}))
|
| - .then(device => device.gatt.connect())
|
| - .then(gattServer => {
|
| - let services;
|
| - return gattServer
|
| - .CALLS([
|
| - getPrimaryService('health_thermometer')|
|
| - getPrimaryServices()|
|
| - getPrimaryServices('health_thermometer')[UUID]])
|
| - .then(s => {
|
| - // Convert to array if necessary.
|
| - services = [].concat(s);
|
| - return get_request_disconnection(gattServer);
|
| - })
|
| - .then(requestDisconnection => requestDisconnection())
|
| - .then(() => gattServer.connect())
|
| - .then(() => services);
|
| - })
|
| - .then(services => {
|
| - let promises = Promise.resolve();
|
| - for (let service of services) {
|
| - if (service.uuid == request_disconnection_service_uuid) {
|
| - continue;
|
| - }
|
| - let error = new DOMException(
|
| - 'Service is no longer valid. Remember to retrieve the service ' +
|
| - 'again after reconnecting.',
|
| - 'InvalidStateError');
|
| - promises = promises.then(() =>
|
| - assert_promise_rejects_with_message(
|
| - service.getCharacteristic('measurement_interval'),
|
| - error));
|
| - promises = promises.then(() =>
|
| - assert_promise_rejects_with_message(
|
| - service.getCharacteristics(),
|
| - error));
|
| - promises = promises.then(() =>
|
| - assert_promise_rejects_with_message(
|
| - service.getCharacteristics('measurement_interval'),
|
| - error));
|
| - }
|
| - return promises;
|
| - });
|
| -}, 'Calls on services after device disconnects and we reconnect. ' +
|
| - 'Should reject with InvalidStateError.');
|
|
|