| OLD | NEW |
| 1 'use strict'; | 1 'use strict'; |
| 2 | 2 |
| 3 // Bluetooth UUID constants: |
| 4 // Services: |
| 5 var blacklist_test_service_uuid = "611c954a-263b-4f4a-aab6-01ddb953f985"; |
| 6 // Characteristics: |
| 7 var blacklist_exclude_reads_characteristic_uuid = |
| 8 "bad1c9a2-9a5b-4015-8b60-1579bbbf2135"; |
| 9 |
| 3 // 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 |
| 4 // produces the same result. The following objects help us do that. | 11 // produces the same result. The following objects help us do that. |
| 5 var generic_access = { | 12 var generic_access = { |
| 6 alias: 0x1800, | 13 alias: 0x1800, |
| 7 name: 'generic_access', | 14 name: 'generic_access', |
| 8 uuid: '00001800-0000-1000-8000-00805f9b34fb' | 15 uuid: '00001800-0000-1000-8000-00805f9b34fb' |
| 9 }; | 16 }; |
| 10 var device_name = { | 17 var device_name = { |
| 11 alias: 0x2a00, | 18 alias: 0x2a00, |
| 12 name: 'gap.device_name', | 19 name: 'gap.device_name', |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 // interact with the device. So before we clean up the browser data | 308 // interact with the device. So before we clean up the browser data |
| 302 // we change the visibility which results in all devices disconnecing. | 309 // we change the visibility which results in all devices disconnecing. |
| 303 // TODO(ortuno): Remove setPageVisibility hack. In the future, the browser | 310 // TODO(ortuno): Remove setPageVisibility hack. In the future, the browser |
| 304 // will notify the renderer that the device disconnected so we won't need | 311 // will notify the renderer that the device disconnected so we won't need |
| 305 // this hack. | 312 // this hack. |
| 306 // https://crbug.com/581855 | 313 // https://crbug.com/581855 |
| 307 testRunner.setPageVisibility('hidden'); | 314 testRunner.setPageVisibility('hidden'); |
| 308 testRunner.setPageVisibility('visible'); | 315 testRunner.setPageVisibility('visible'); |
| 309 testRunner.setBluetoothMockDataSet(''); | 316 testRunner.setBluetoothMockDataSet(''); |
| 310 }); | 317 }); |
| OLD | NEW |