| OLD | NEW |
| 1 <!-- Generated by //third_party/WebKit/LayoutTests/bluetooth/generate.py --> | 1 <!-- Generated by //third_party/WebKit/LayoutTests/bluetooth/generate.py --> |
| 2 <!DOCTYPE html> | 2 <!DOCTYPE html> |
| 3 <script src="../../resources/testharness.js"></script> | 3 <script src="../../../resources/testharness.js"></script> |
| 4 <script src="../../resources/testharnessreport.js"></script> | 4 <script src="../../../resources/testharnessreport.js"></script> |
| 5 <script src="../../resources/bluetooth/bluetooth-helpers.js"></script> | 5 <script src="../../../resources/bluetooth/bluetooth-helpers.js"></script> |
| 6 <script> | 6 <script> |
| 7 'use strict'; | 7 'use strict'; |
| 8 promise_test(() => { | 8 promise_test(() => { |
| 9 return setBluetoothFakeAdapter('HeartRateAdapter') | 9 return setBluetoothFakeAdapter('HeartRateAdapter') |
| 10 .then(() => requestDeviceWithKeyDown({ | 10 .then(() => requestDeviceWithKeyDown({ |
| 11 filters: [{services: ['heart_rate']}]})) | 11 filters: [{services: ['heart_rate']}]})) |
| 12 .then(device => device.gatt.connect()) | 12 .then(device => device.gatt.connect()) |
| 13 .then(gattServer => gattServer.getPrimaryService('heart_rate')) | 13 .then(gattServer => gattServer.getPrimaryService('heart_rate')) |
| 14 .then(service => Promise.all([ | 14 .then(service => Promise.all([ |
| 15 service.getCharacteristic('body_sensor_location'), | 15 service.getCharacteristic('body_sensor_location'), |
| (...skipping 11 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 let base_set = new Set(characteristics_arrays[0]); | 28 let base_set = new Set(characteristics_arrays[0]); |
| 29 for (let characteristics of characteristics_arrays) { | 29 for (let characteristics of characteristics_arrays) { |
| 30 characteristics.forEach( | 30 characteristics.forEach( |
| 31 characteristic => assert_true(base_set.has(characteristic))); | 31 characteristic => assert_true(base_set.has(characteristic))); |
| 32 } | 32 } |
| 33 }); | 33 }); |
| 34 }, 'Calls to getCharacteristic should return the same object.'); | 34 }, 'Calls to getCharacteristic should return the same object.'); |
| 35 | 35 |
| 36 </script> | 36 </script> |
| OLD | NEW |