| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/interfaces/bindings/tests/sample_service.mojom", | 7 "mojo/public/interfaces/bindings/tests/sample_service.mojom", |
| 8 "mojo/public/interfaces/bindings/tests/sample_import.mojom", | 8 "mojo/public/interfaces/bindings/tests/sample_import.mojom", |
| 9 "mojo/public/interfaces/bindings/tests/sample_import2.mojom", | 9 "mojo/public/interfaces/bindings/tests/sample_import2.mojom", |
| 10 "mojo/public/js/bindings", | 10 "mojo/public/js/bindings", |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 expect(foo.extra_bars[i].type).toBe(type); | 164 expect(foo.extra_bars[i].type).toBe(type); |
| 165 } | 165 } |
| 166 | 166 |
| 167 expect(foo.data.length).toBe(10); | 167 expect(foo.data.length).toBe(10); |
| 168 for (var i = 0; i < foo.data.length; ++i) | 168 for (var i = 0; i < foo.data.length; ++i) |
| 169 expect(foo.data[i]).toBe(foo.data.length - i); | 169 expect(foo.data[i]).toBe(foo.data.length - i); |
| 170 | 170 |
| 171 expect(core.isHandle(foo.source)).toBeTruthy(); | 171 expect(core.isHandle(foo.source)).toBeTruthy(); |
| 172 } | 172 } |
| 173 }); | 173 }); |
| OLD | NEW |