| 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/bindings/js/codec", | 7 "mojo/public/js/bindings/codec", |
| 8 "mojo/public/interfaces/bindings/tests/sample_service.mojom", | 8 "mojo/public/interfaces/bindings/tests/sample_service.mojom", |
| 9 ], function(expect, codec, sample) { | 9 ], function(expect, codec, sample) { |
| 10 testBar(); | 10 testBar(); |
| 11 testFoo(); | 11 testFoo(); |
| 12 testAlign(); | 12 testAlign(); |
| 13 this.result = "PASS"; | 13 this.result = "PASS"; |
| 14 | 14 |
| 15 function testBar() { | 15 function testBar() { |
| 16 var bar = new sample.Bar(); | 16 var bar = new sample.Bar(); |
| 17 bar.alpha = 1; | 17 bar.alpha = 1; |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 16, // 16 | 152 16, // 16 |
| 153 24, // 17 | 153 24, // 17 |
| 154 24, // 18 | 154 24, // 18 |
| 155 24, // 19 | 155 24, // 19 |
| 156 24, // 20 | 156 24, // 20 |
| 157 ]; | 157 ]; |
| 158 for (var i = 0; i < aligned.length; ++i) | 158 for (var i = 0; i < aligned.length; ++i) |
| 159 expect(codec.align(i)).toBe(aligned[i]); | 159 expect(codec.align(i)).toBe(aligned[i]); |
| 160 } | 160 } |
| 161 }); | 161 }); |
| OLD | NEW |