| Index: third_party/WebKit/LayoutTests/bluetooth/gattserverdisconnected-event/reconnect-during-disconnected-event.html
|
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/gattserverdisconnected-event/reconnect-during-disconnected-event.html b/third_party/WebKit/LayoutTests/bluetooth/gattserverdisconnected-event/reconnect-during-disconnected-event.html
|
| index 6eb12f4a946ab81bebaf4d197addc56d2a177681..4001ad48d9766c5cb650deb0bc8b327ed44e0b5f 100644
|
| --- a/third_party/WebKit/LayoutTests/bluetooth/gattserverdisconnected-event/reconnect-during-disconnected-event.html
|
| +++ b/third_party/WebKit/LayoutTests/bluetooth/gattserverdisconnected-event/reconnect-during-disconnected-event.html
|
| @@ -12,8 +12,7 @@ promise_test(t => {
|
| }))
|
| .then(device => {
|
| return device.gatt.connect()
|
| - .then(gattServer => gattServer.getPrimaryService(request_disconnection_service_uuid))
|
| - .then(service => service.getCharacteristic(request_disconnection_characteristic_uuid))
|
| + .then(gattServer => get_request_disconnection(gattServer))
|
| .then(requestDisconnection => {
|
| // 1. Attach a listener that tries to reconnect.
|
| let reconnection = new Promise(resolve => {
|
| @@ -24,12 +23,12 @@ promise_test(t => {
|
| device.addEventListener('gattserverdisconnected', wrapper);
|
| });
|
| // 2. Disconnect.
|
| - requestDisconnection.writeValue(new Uint8Array([0]));
|
| + requestDisconnection();
|
| return reconnection.then(() => {
|
| // Resolves after disconnected event.
|
| let disconnected = eventPromise(device, 'gattserverdisconnected');
|
| // 3. Disconnect after reconnecting.
|
| - requestDisconnection.writeValue(new Uint8Array([0]));
|
| + requestDisconnection();
|
| return disconnected;
|
| });
|
| });
|
|
|