| 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 return gattServer.getPrimaryService('health_thermometer') | 9 return gattServer.getPrimaryService('health_thermometer') |
| 10 .then(service => service.CALLS([ | 10 .then(service => service.CALLS([ |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 error)); | 40 error)); |
| 41 promises = promises.then(() => | 41 promises = promises.then(() => |
| 42 assert_promise_rejects_with_message( | 42 assert_promise_rejects_with_message( |
| 43 characteristic.stopNotifications(), | 43 characteristic.stopNotifications(), |
| 44 error)); | 44 error)); |
| 45 } | 45 } |
| 46 return promises; | 46 return promises; |
| 47 }); | 47 }); |
| 48 }, 'Calls on characteristics after we disconnects and connect again. ' + | 48 }, 'Calls on characteristics after we disconnects and connect again. ' + |
| 49 'Should reject with InvalidStateError.'); | 49 'Should reject with InvalidStateError.'); |
| OLD | NEW |