| OLD | NEW |
| 1 'use strict'; | 1 'use strict'; |
| 2 promise_test(() => { | 2 promise_test(() => { |
| 3 return setBluetoothFakeAdapter('HeartRateAdapter') | 3 return setBluetoothFakeAdapter('HeartRateAdapter') |
| 4 .then(() => requestDeviceWithKeyDown({ | 4 .then(() => requestDeviceWithKeyDown({ |
| 5 filters: [{services: ['heart_rate']}]})) | 5 filters: [{services: ['heart_rate']}]})) |
| 6 .then(device => device.gatt.connect()) | 6 .then(device => device.gatt.connect()) |
| 7 .then(gattServer => gattServer.getPrimaryService('heart_rate')) | 7 .then(gattServer => gattServer.getPrimaryService('heart_rate')) |
| 8 .then(service => Promise.all([ | 8 .then(service => Promise.all([ |
| 9 service.CALLS([ | 9 service.CALLS([ |
| 10 getCharacteristic('body_sensor_location')| | 10 getCharacteristic('body_sensor_location')| |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 characteristics_arrays[i].length); | 22 characteristics_arrays[i].length); |
| 23 } | 23 } |
| 24 | 24 |
| 25 let base_set = new Set(characteristics_arrays[0]); | 25 let base_set = new Set(characteristics_arrays[0]); |
| 26 for (let characteristics of characteristics_arrays) { | 26 for (let characteristics of characteristics_arrays) { |
| 27 characteristics.forEach( | 27 characteristics.forEach( |
| 28 characteristic => assert_true(base_set.has(characteristic))); | 28 characteristic => assert_true(base_set.has(characteristic))); |
| 29 } | 29 } |
| 30 }); | 30 }); |
| 31 }, 'Calls to FUNCTION_NAME should return the same object.'); | 31 }, 'Calls to FUNCTION_NAME should return the same object.'); |
| OLD | NEW |