| OLD | NEW |
| 1 var genericAccessServiceUuid = '00001800-0000-1000-8000-00805f9b34fb'; | 1 var genericAccessServiceUuid = '00001800-0000-1000-8000-00805f9b34fb'; |
| 2 var genericAttributeServiceUuid = '00001801-0000-1000-8000-00805f9b34fb'; | 2 var genericAttributeServiceUuid = '00001801-0000-1000-8000-00805f9b34fb'; |
| 3 var glucoseServiceUuid = '00001808-0000-1000-8000-00805f9b34fb'; | 3 var glucoseServiceUuid = '00001808-0000-1000-8000-00805f9b34fb'; |
| 4 var heartRateServiceUuid = '0000180d-0000-1000-8000-00805f9b34fb'; | 4 var heartRateServiceUuid = '0000180d-0000-1000-8000-00805f9b34fb'; |
| 5 var batteryServiceUuid = '0000180f-0000-1000-8000-00805f9b34fb'; | 5 var batteryServiceUuid = '0000180f-0000-1000-8000-00805f9b34fb'; |
| 6 | |
| 7 var promise_tests = Promise.resolve(); | |
| 8 // Helper function to run promise tests one after the other. | |
| 9 // TODO(ortuno): Remove once https://github.com/w3c/testharness.js/pull/115/file
s | |
| 10 // gets through. | |
| 11 function sequential_promise_test(func, name) { | |
| 12 var test = async_test(name); | |
| 13 promise_tests = promise_tests.then(function() { | |
| 14 return test.step(func, test, test); | |
| 15 }).then(function() { | |
| 16 test.done(); | |
| 17 }).catch(test.step_func(function(value) { | |
| 18 // step_func catches the error again so the error doesn't propagate. | |
| 19 throw value; | |
| 20 })); | |
| 21 } | |
| OLD | NEW |