| OLD | NEW |
| 1 'use strict'; | 1 'use strict'; |
| 2 promise_test(() => { | 2 promise_test(() => { |
| 3 let promise; | 3 let promise; |
| 4 return setBluetoothFakeAdapter('TwoHeartRateServicesAdapter') | 4 return setBluetoothFakeAdapter('TwoHeartRateServicesAdapter') |
| 5 .then(() => requestDeviceWithKeyDown({ | 5 .then(() => requestDeviceWithKeyDown({ |
| 6 filters: [{services: ['heart_rate']}]})) | 6 filters: [{services: ['heart_rate']}]})) |
| 7 .then(device => device.gatt.connect()) | 7 .then(device => device.gatt.connect()) |
| 8 .then(gattServer => { | 8 .then(gattServer => { |
| 9 return gattServer | 9 return gattServer |
| 10 .CALLS([ | 10 .CALLS([ |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 error)); | 36 error)); |
| 37 promises = promises.then(() => | 37 promises = promises.then(() => |
| 38 assert_promise_rejects_with_message( | 38 assert_promise_rejects_with_message( |
| 39 service.getCharacteristics('body_sensor_location'), | 39 service.getCharacteristics('body_sensor_location'), |
| 40 error)); | 40 error)); |
| 41 } | 41 } |
| 42 return promises; | 42 return promises; |
| 43 }); | 43 }); |
| 44 }, 'Calls on services after we disconnect and connect again. '+ | 44 }, 'Calls on services after we disconnect and connect again. '+ |
| 45 'Should reject with InvalidStateError.'); | 45 'Should reject with InvalidStateError.'); |
| OLD | NEW |