| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../resources/testharness.js"></script> | 2 <script src="../../resources/testharness.js"></script> |
| 3 <script src="../../resources/testharnessreport.js"></script> | 3 <script src="../../resources/testharnessreport.js"></script> |
| 4 <script src="../../resources/bluetooth/bluetooth-helpers.js"></script> | 4 <script src="../../resources/bluetooth/bluetooth-helpers.js"></script> |
| 5 <script> | 5 <script> |
| 6 'use strict'; | 6 'use strict'; |
| 7 // TODO(ortuno): Remove connectGATT in M52. |
| 8 // http://crbug.com/582292 |
| 7 promise_test(() => { | 9 promise_test(() => { |
| 8 return setBluetoothFakeAdapter('HeartRateAdapter') | 10 return setBluetoothFakeAdapter('HeartRateAdapter') |
| 9 .then(() => requestDeviceWithKeyDown({ | 11 .then(() => requestDeviceWithKeyDown({ |
| 10 filters: [{services: ['heart_rate']}]})) | 12 filters: [{services: ['heart_rate']}]})) |
| 11 .then(device => device.gatt.connect()) | 13 .then(device => device.connectGATT()) |
| 12 .then(gattServer => gattServer.getPrimaryService('heart_rate')) | 14 }, 'Make sure deprecated method is still usable.') |
| 13 .then(service => service.getCharacteristic('heart_rate_measurement')) | 15 </script></script> |
| 14 .then(characteristic => characteristic.stopNotifications()); | |
| 15 }, "Stop without starting."); | |
| 16 </script> | |
| OLD | NEW |