| OLD | NEW |
| 1 'use strict'; | 1 'use strict'; |
| 2 promise_test(() => { | 2 promise_test(() => { |
| 3 return setBluetoothFakeAdapter('DisconnectingHealthThermometerAdapter') | 3 return setBluetoothFakeAdapter('DisconnectingHealthThermometerAdapter') |
| 4 .then(() => requestDeviceWithKeyDown({ | 4 .then(() => requestDeviceWithKeyDown({ |
| 5 filters: [{services: ['health_thermometer']}], | 5 filters: [{services: ['health_thermometer']}], |
| 6 optionalServices: [request_disconnection_service_uuid]})) | 6 optionalServices: [request_disconnection_service_uuid]})) |
| 7 .then(device => device.gatt.connect()) | 7 .then(device => device.gatt.connect()) |
| 8 .then(gattServer => { | 8 .then(gattServer => { |
| 9 let characteristics; | 9 let characteristics; |
| 10 return gattServer.getPrimaryService('health_thermometer') | 10 return gattServer.getPrimaryService('health_thermometer') |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 error)); | 42 error)); |
| 43 promises = promises.then(() => | 43 promises = promises.then(() => |
| 44 assert_promise_rejects_with_message( | 44 assert_promise_rejects_with_message( |
| 45 characteristic.stopNotifications(), | 45 characteristic.stopNotifications(), |
| 46 error)); | 46 error)); |
| 47 } | 47 } |
| 48 return promises; | 48 return promises; |
| 49 }); | 49 }); |
| 50 }, 'Calls on characteristics after device disconnects and we reconnect. ' + | 50 }, 'Calls on characteristics after device disconnects and we reconnect. ' + |
| 51 'Should reject with InvalidStateError.'); | 51 'Should reject with InvalidStateError.'); |
| OLD | NEW |