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