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 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 blacklist_exclude_reads_characteristic_uuid = | 8 var blacklist_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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
45 var battery_service = { | 45 var battery_service = { |
46 alias: 0x180f, | 46 alias: 0x180f, |
47 name: 'battery_service', | 47 name: 'battery_service', |
48 uuid: '0000180f-0000-1000-8000-00805f9b34fb' | 48 uuid: '0000180f-0000-1000-8000-00805f9b34fb' |
49 }; | 49 }; |
50 var battery_level = { | 50 var battery_level = { |
51 alias: 0x2A19, | 51 alias: 0x2A19, |
52 name: 'battery_level', | 52 name: 'battery_level', |
53 uuid: '00002a19-0000-1000-8000-00805f9b34fb' | 53 uuid: '00002a19-0000-1000-8000-00805f9b34fb' |
54 }; | 54 }; |
55 var user_description = { | |
56 alias: 0x2901, | |
57 name: 'user_description', | |
ortuno
2016/11/21 03:34:09
This should be: 'gatt.characteristic_user_descript
dougt
2016/11/22 01:47:16
Acknowledged.
| |
58 uuid: '00002901-0000-1000-8000-00805f9b34fb' | |
59 }; | |
60 var client_characteristic_configuration = { | |
61 alias: 0x2902, | |
62 name: 'client_characteristic_configuration', | |
ortuno
2016/11/21 03:34:09
This one should be: 'gatt.client_characteristic_co
dougt
2016/11/22 01:47:16
Acknowledged.
| |
63 uuid: '00002902-0000-1000-8000-00805f9b34fb' | |
64 }; | |
55 | 65 |
56 // The following tests make sure the Web Bluetooth implementation | 66 // The following tests make sure the Web Bluetooth implementation |
57 // responds correctly to the different types of errors the | 67 // responds correctly to the different types of errors the |
58 // underlying platform might return for GATT operations. | 68 // underlying platform might return for GATT operations. |
59 | 69 |
60 // Each browser should map these characteristics to specific code paths | 70 // Each browser should map these characteristics to specific code paths |
61 // that result in different errors thus increasing code coverage | 71 // that result in different errors thus increasing code coverage |
62 // when testing. Therefore some of these characteristics might not be useful | 72 // when testing. Therefore some of these characteristics might not be useful |
63 // for all browsers. | 73 // for all browsers. |
64 // | 74 // |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
352 filters: [{ services: services, name: 'Name' }], | 362 filters: [{ services: services, name: 'Name' }], |
353 optionalServices: ['heart_rate'] | 363 optionalServices: ['heart_rate'] |
354 }, { | 364 }, { |
355 filters: [{ services: services, namePrefix: 'Pre' }], | 365 filters: [{ services: services, namePrefix: 'Pre' }], |
356 optionalServices: ['heart_rate'] | 366 optionalServices: ['heart_rate'] |
357 }, { | 367 }, { |
358 filters: [{ services: services, name: 'Name', namePrefix: 'Pre' }], | 368 filters: [{ services: services, name: 'Name', namePrefix: 'Pre' }], |
359 optionalServices: ['heart_rate'] | 369 optionalServices: ['heart_rate'] |
360 }]; | 370 }]; |
361 } | 371 } |
OLD | NEW |