| OLD | NEW |
| 1 'use strict'; | 1 'use strict'; |
| 2 | 2 |
| 3 // Bluetooth UUID constants: | 3 // Bluetooth UUID constants: |
| 4 // Services: | 4 // Services: |
| 5 var blacklist_test_service_uuid = "611c954a-263b-4f4a-aab6-01ddb953f985"; | 5 var blacklist_test_service_uuid = "611c954a-263b-4f4a-aab6-01ddb953f985"; |
| 6 // Characteristics: | 6 // Characteristics: |
| 7 var blacklist_exclude_reads_characteristic_uuid = | 7 var blacklist_exclude_reads_characteristic_uuid = |
| 8 "bad1c9a2-9a5b-4015-8b60-1579bbbf2135"; | 8 "bad1c9a2-9a5b-4015-8b60-1579bbbf2135"; |
| 9 | 9 |
| 10 // Sometimes we need to test that using either the name, alias, or UUID | 10 // Sometimes we need to test that using either the name, alias, or UUID |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 filters: [{ services: services, name: 'Name' }], | 321 filters: [{ services: services, name: 'Name' }], |
| 322 optionalServices: ['heart_rate'] | 322 optionalServices: ['heart_rate'] |
| 323 }, { | 323 }, { |
| 324 filters: [{ services: services, namePrefix: 'Pre' }], | 324 filters: [{ services: services, namePrefix: 'Pre' }], |
| 325 optionalServices: ['heart_rate'] | 325 optionalServices: ['heart_rate'] |
| 326 }, { | 326 }, { |
| 327 filters: [{ services: services, name: 'Name', namePrefix: 'Pre' }], | 327 filters: [{ services: services, name: 'Name', namePrefix: 'Pre' }], |
| 328 optionalServices: ['heart_rate'] | 328 optionalServices: ['heart_rate'] |
| 329 }]; | 329 }]; |
| 330 } | 330 } |
| 331 | |
| 332 // Bluetooth tests sometimes have left-over state that could leak into the | |
| 333 // next test. add_result_callback which is exposed by testharness.js allows us | |
| 334 // to clean up this state after each test. Once the move to Mojo is complete | |
| 335 // we will no longer need to clean up the state manually. | |
| 336 // https://crbug.com/508771 | |
| 337 add_result_callback(() => { | |
| 338 setBluetoothFakeAdapter(''); | |
| 339 }); | |
| OLD | NEW |