| Index: third_party/WebKit/LayoutTests/bluetooth/disconnect/connect-disconnect-twice.html
|
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/notifications/stop-twice.html b/third_party/WebKit/LayoutTests/bluetooth/disconnect/connect-disconnect-twice.html
|
| similarity index 50%
|
| copy from third_party/WebKit/LayoutTests/bluetooth/notifications/stop-twice.html
|
| copy to third_party/WebKit/LayoutTests/bluetooth/disconnect/connect-disconnect-twice.html
|
| index 01075c731951c10d668fefc59b12987f8306b0ef..c81996ae1ad82928094eb31bb4dc46c6f5a34fb8 100644
|
| --- a/third_party/WebKit/LayoutTests/bluetooth/notifications/stop-twice.html
|
| +++ b/third_party/WebKit/LayoutTests/bluetooth/disconnect/connect-disconnect-twice.html
|
| @@ -8,13 +8,16 @@ promise_test(() => {
|
| return setBluetoothFakeAdapter('HeartRateAdapter')
|
| .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 => {
|
| - return characteristic.startNotifications()
|
| - .then(() => characteristic.stopNotifications())
|
| - .then(() => characteristic.stopNotifications());
|
| + .then(device => {
|
| + return device.gatt.connect()
|
| + .then(gattServer => {
|
| + gattServer.disconnect();
|
| + assert_false(gattServer.connected);
|
| + })
|
| + .then(() => device.gatt.connect()).then(gattServer => {
|
| + gattServer.disconnect();
|
| + assert_false(gattServer.connected);
|
| + });
|
| });
|
| -}, "Stopping twice.");
|
| +}, 'Connect + Disconnect twice still results in \'connected\' being false.');
|
| </script>
|
|
|