| OLD | NEW |
| 1 'use strict'; | 1 'use strict'; |
| 2 | 2 |
| 3 // Bluetooth UUID constants: | 3 // Bluetooth UUID constants: |
| 4 // Services: | 4 // Services: |
| 5 var blocklist_test_service_uuid = "611c954a-263b-4f4a-aab6-01ddb953f985"; | 5 var blocklist_test_service_uuid = "611c954a-263b-4f4a-aab6-01ddb953f985"; |
| 6 var request_disconnection_service_uuid = "01d7d889-7451-419f-aeb8-d65e7b9277af"; | 6 var request_disconnection_service_uuid = "01d7d889-7451-419f-aeb8-d65e7b9277af"; |
| 7 // Characteristics: | 7 // Characteristics: |
| 8 var blocklist_exclude_reads_characteristic_uuid = | 8 var blocklist_exclude_reads_characteristic_uuid = |
| 9 "bad1c9a2-9a5b-4015-8b60-1579bbbf2135"; | 9 "bad1c9a2-9a5b-4015-8b60-1579bbbf2135"; |
| 10 var request_disconnection_characteristic_uuid = | 10 var request_disconnection_characteristic_uuid = |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 var user_description = { | 57 var user_description = { |
| 58 alias: 0x2901, | 58 alias: 0x2901, |
| 59 name: 'gatt.characteristic_user_description', | 59 name: 'gatt.characteristic_user_description', |
| 60 uuid: '00002901-0000-1000-8000-00805f9b34fb' | 60 uuid: '00002901-0000-1000-8000-00805f9b34fb' |
| 61 }; | 61 }; |
| 62 var client_characteristic_configuration = { | 62 var client_characteristic_configuration = { |
| 63 alias: 0x2902, | 63 alias: 0x2902, |
| 64 name: 'gatt.client_characteristic_configuration', | 64 name: 'gatt.client_characteristic_configuration', |
| 65 uuid: '00002902-0000-1000-8000-00805f9b34fb' | 65 uuid: '00002902-0000-1000-8000-00805f9b34fb' |
| 66 }; | 66 }; |
| 67 var measurement_interval = { |
| 68 alias: 0x2a21, |
| 69 name: 'measurement_interval', |
| 70 uuid: '00002a21-0000-1000-8000-00805f9b34fb' |
| 71 }; |
| 67 | 72 |
| 68 // The following tests make sure the Web Bluetooth implementation | 73 // The following tests make sure the Web Bluetooth implementation |
| 69 // responds correctly to the different types of errors the | 74 // responds correctly to the different types of errors the |
| 70 // underlying platform might return for GATT operations. | 75 // underlying platform might return for GATT operations. |
| 71 | 76 |
| 72 // Each browser should map these characteristics to specific code paths | 77 // Each browser should map these characteristics to specific code paths |
| 73 // that result in different errors thus increasing code coverage | 78 // that result in different errors thus increasing code coverage |
| 74 // when testing. Therefore some of these characteristics might not be useful | 79 // when testing. Therefore some of these characteristics might not be useful |
| 75 // for all browsers. | 80 // for all browsers. |
| 76 // | 81 // |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 filters: [{ services: services, name: 'Name' }], | 389 filters: [{ services: services, name: 'Name' }], |
| 385 optionalServices: ['heart_rate'] | 390 optionalServices: ['heart_rate'] |
| 386 }, { | 391 }, { |
| 387 filters: [{ services: services, namePrefix: 'Pre' }], | 392 filters: [{ services: services, namePrefix: 'Pre' }], |
| 388 optionalServices: ['heart_rate'] | 393 optionalServices: ['heart_rate'] |
| 389 }, { | 394 }, { |
| 390 filters: [{ services: services, name: 'Name', namePrefix: 'Pre' }], | 395 filters: [{ services: services, name: 'Name', namePrefix: 'Pre' }], |
| 391 optionalServices: ['heart_rate'] | 396 optionalServices: ['heart_rate'] |
| 392 }]; | 397 }]; |
| 393 } | 398 } |
| OLD | NEW |