| Index: third_party/WebKit/LayoutTests/bluetooth/disconnect/disconnect-twice-in-a-row.html
|
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/notifications/stop-without-starting.html b/third_party/WebKit/LayoutTests/bluetooth/disconnect/disconnect-twice-in-a-row.html
|
| similarity index 61%
|
| copy from third_party/WebKit/LayoutTests/bluetooth/notifications/stop-without-starting.html
|
| copy to third_party/WebKit/LayoutTests/bluetooth/disconnect/disconnect-twice-in-a-row.html
|
| index 7cbb02923277a8249db0a1bc80b9830129cd2025..a059a96318dc4e1ea75128835d200b2950ff1d07 100644
|
| --- a/third_party/WebKit/LayoutTests/bluetooth/notifications/stop-without-starting.html
|
| +++ b/third_party/WebKit/LayoutTests/bluetooth/disconnect/disconnect-twice-in-a-row.html
|
| @@ -9,8 +9,12 @@ promise_test(() => {
|
| .then(() => requestDeviceWithKeyDown({
|
| filters: [{services: ['heart_rate']}]}))
|
| .then(device => device.gatt.connect())
|
| - .then(gattServer => gattServer.getPrimaryService('heart_rate'))
|
| - .then(service => service.getCharacteristic('heart_rate_measurement'))
|
| - .then(characteristic => characteristic.stopNotifications());
|
| -}, "Stop without starting.");
|
| + .then(gattServer => {
|
| + gattServer.disconnect();
|
| + assert_false(gattServer.connected);
|
| + gattServer.disconnect();
|
| + assert_false(gattServer.connected);
|
| + });
|
| +}, 'Calling disconnect twice in a row still results in \'connected\' ' +
|
| + 'being false.');
|
| </script>
|
|
|