| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 define([ | 5 define([ |
| 6 "gin/test/expect", | 6 "gin/test/expect", |
| 7 "mojo/public/js/bindings", | 7 "mojo/public/js/bindings", |
| 8 "mojo/public/js/core", | 8 "mojo/public/js/core", |
| 9 "mojo/public/interfaces/bindings/tests/math_calculator.mojom", | 9 "mojo/public/interfaces/bindings/tests/math_calculator.mojom", |
| 10 "mojo/public/js/threading", | 10 "mojo/public/js/threading", |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 pipe.handle1); | 151 pipe.handle1); |
| 152 | 152 |
| 153 var promise = calc.add(2).then(function(response) { | 153 var promise = calc.add(2).then(function(response) { |
| 154 expect(response.value).toBe(2); | 154 expect(response.value).toBe(2); |
| 155 return Promise.resolve(); | 155 return Promise.resolve(); |
| 156 }); | 156 }); |
| 157 | 157 |
| 158 return promise; | 158 return promise; |
| 159 } | 159 } |
| 160 }); | 160 }); |
| OLD | NEW |