OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
yzshen1
2017/01/19 19:48:47
Does it make sense to create a mojo/public/js/bind
alokp
2017/01/19 22:32:15
Yes it does. Do you think it is worth making the f
yzshen1
2017/01/19 22:32:53
That sounds good to me. Thanks!
| |
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/interfaces/bindings/tests/math_calculator.mojom", | 8 "mojo/public/interfaces/bindings/tests/math_calculator.mojom", |
9 "mojo/public/js/threading", | 9 "mojo/public/js/threading", |
10 "gc", | 10 "gc", |
11 ], function(expect, | 11 ], function(expect, |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
150 expect(response.value).toBe(12); | 150 expect(response.value).toBe(12); |
151 | 151 |
152 bindingSet.closeAllBindings(); | 152 bindingSet.closeAllBindings(); |
153 expect(bindingSet.isEmpty()).toBeTruthy(); | 153 expect(bindingSet.isEmpty()).toBeTruthy(); |
154 return Promise.resolve(); | 154 return Promise.resolve(); |
155 }); | 155 }); |
156 | 156 |
157 return promise; | 157 return promise; |
158 } | 158 } |
159 }); | 159 }); |
OLD | NEW |