| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 1 promise_test( | 
|  | 2     () => { | 
|  | 3       return setBluetoothFakeAdapter( | 
|  | 4                  'GATTOperationFailsAfterReconnectionAdapter') | 
|  | 5           .then( | 
|  | 6               () => requestDeviceWithKeyDown( | 
|  | 7                   {filters: [{services: ['health_thermometer']}]})) | 
|  | 8           .then(device => device.gatt.connect()) | 
|  | 9           .then(gatt => gatt.getPrimaryService('health_thermometer')) | 
|  | 10           .then(service => service.getCharacteristic('measurement_interval')) | 
|  | 11           .then( | 
|  | 12               characteristic => | 
|  | 13                   characteristic.getDescriptor(user_description.name)) | 
|  | 14           .then(descriptor => { | 
|  | 15             let promise = assert_promise_rejects_with_message( | 
|  | 16                 descriptor.CALLS([readValue()]), | 
|  | 17                 new DOMException( | 
|  | 18                     'GATT Server disconnected while performing a GATT operation.
    ', | 
|  | 19                     'NetworkError')); | 
|  | 20             let gatt = descriptor.characteristic.service.device.gatt; | 
|  | 21             gatt.disconnect(); | 
|  | 22             return gatt.connect().then(() => promise); | 
|  | 23           }); | 
|  | 24     }, | 
|  | 25     'disconnect() and connect() called during a FUNCTION_NAME call that ' + | 
|  | 26         'fails. Reject with NetworkError.'); | 
| OLD | NEW | 
|---|