| Index: third_party/WebKit/LayoutTests/bluetooth/disconnect/disconnect-once.html
|
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/notifications/stop-without-starting.html b/third_party/WebKit/LayoutTests/bluetooth/disconnect/disconnect-once.html
|
| similarity index 60%
|
| copy from third_party/WebKit/LayoutTests/bluetooth/notifications/stop-without-starting.html
|
| copy to third_party/WebKit/LayoutTests/bluetooth/disconnect/disconnect-once.html
|
| index 7cbb02923277a8249db0a1bc80b9830129cd2025..2309ba81420d027c253476c9b232878d6dba9fb2 100644
|
| --- a/third_party/WebKit/LayoutTests/bluetooth/notifications/stop-without-starting.html
|
| +++ b/third_party/WebKit/LayoutTests/bluetooth/disconnect/disconnect-once.html
|
| @@ -4,13 +4,17 @@
|
| <script src="../../resources/bluetooth/bluetooth-helpers.js"></script>
|
| <script>
|
| 'use strict';
|
| +// TODO(ortuno): Write tests to check that "Disconnect" was actually
|
| +// called on the device.
|
| +// http://crbug.com/569716
|
| 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 => characteristic.stopNotifications());
|
| -}, "Stop without starting.");
|
| + .then(gattServer => {
|
| + gattServer.disconnect();
|
| + assert_false(gattServer.connected);
|
| + });
|
| +}, '\'connected\' is set to false after disconnect is called.');
|
| </script>
|
|
|