Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 'use strict'; | 1 'use strict'; |
| 2 promise_test(() => { | 2 promise_test(() => { |
| 3 let val = new Uint8Array([1]); | 3 let val = new Uint8Array([1]); |
| 4 return setBluetoothFakeAdapter('DisconnectingHealthThermometerAdapter') | 4 return setBluetoothFakeAdapter('DisconnectingHealthThermometerAdapter') |
| 5 .then( | 5 .then(() => requestDeviceWithKeyDown({ |
|
ortuno
2017/01/31 19:50:09
Why is this the only file whose format changed? io
dougt
2017/01/31 20:59:16
io-op-fails.js has the new format (just look at al
ortuno
2017/02/01 00:01:58
I mean the old new format... I see a lot of whites
| |
| 6 () => requestDeviceWithKeyDown( | 6 filters: [{services: ['health_thermometer']}]})) |
| 7 {filters: [{services: ['health_thermometer']}]})) | 7 .then(device => device.gatt.connect()) |
| 8 .then(device => device.gatt.connect()) | 8 .then(gattServer => gattServer.getPrimaryService('health_thermometer')) |
| 9 .then(gattServer => gattServer.getPrimaryService('health_thermometer')) | 9 .then(service => service.getCharacteristic('measurement_interval')) |
| 10 .then(service => service.getCharacteristic('measurement_interval')) | 10 .then(characteristic => characteristic.getDescriptor(user_description.name)) |
| 11 .then( | 11 .then(descriptor => { |
| 12 characteristic => characteristic.getDescriptor(user_description.name)) | 12 return setBluetoothFakeAdapter('MissingServiceHeartRateAdapter') |
| 13 .then(descriptor => { | 13 .then(() => assert_promise_rejects_with_message( |
| 14 return setBluetoothFakeAdapter('MissingServiceHeartRateAdapter') | 14 descriptor.CALLS([readValue()|writeValue(val)]), |
| 15 .then( | 15 new DOMException( |
| 16 () => assert_promise_rejects_with_message( | 16 'GATT Service no longer exists.', |
| 17 descriptor.CALLS([readValue()]), | 17 'InvalidStateError'), |
| 18 new DOMException( | 18 'Service got removed.')); |
| 19 'GATT Service no longer exists.', 'InvalidStateError'), | 19 }); |
| 20 'Service got removed.')); | |
| 21 }); | |
| 22 }, 'Service gets removed. Reject with InvalidStateError.'); | 20 }, 'Service gets removed. Reject with InvalidStateError.'); |
| OLD | NEW |