| OLD | NEW |
| 1 'use strict'; | 1 'use strict'; |
| 2 | 2 |
| 3 // Sometimes we need to test that using either the name, alias, or UUID | 3 // 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. | 4 // produces the same result. The following objects help us do that. |
| 5 var generic_access = { | 5 var generic_access = { |
| 6 alias: 0x1800, | 6 alias: 0x1800, |
| 7 name: 'generic_access', | 7 name: 'generic_access', |
| 8 uuid: '00001800-0000-1000-8000-00805f9b34fb' | 8 uuid: '00001800-0000-1000-8000-00805f9b34fb' |
| 9 }; | 9 }; |
| 10 var device_name = { | 10 var device_name = { |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 this.reliableWrite = properties.reliableWrite || false; | 197 this.reliableWrite = properties.reliableWrite || false; |
| 198 this.writableAuxiliaries = properties.writableAuxiliaries || false; | 198 this.writableAuxiliaries = properties.writableAuxiliaries || false; |
| 199 } | 199 } |
| 200 } | 200 } |
| 201 | 201 |
| 202 function assert_properties_equal(properties, expected_properties) { | 202 function assert_properties_equal(properties, expected_properties) { |
| 203 for (let key in expected_properties) { | 203 for (let key in expected_properties) { |
| 204 assert_equals(properties[key], expected_properties[key]); | 204 assert_equals(properties[key], expected_properties[key]); |
| 205 } | 205 } |
| 206 } | 206 } |
| 207 |
| 208 // Generates a string of size |size|. |
| 209 function generate_string(size, char) { |
| 210 // When passing an array of n undefined's to String the resulting string |
| 211 // has size n - 1. |
| 212 return char.repeat(size); |
| 213 } |
| OLD | NEW |