| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/test_unions.mojom", | 7 "mojo/public/interfaces/bindings/tests/test_unions.mojom", |
| 8 "mojo/public/js/codec", | 8 "mojo/public/js/codec", |
| 9 "mojo/public/js/validator", | 9 "mojo/public/js/validator", |
| 10 ], function(expect, | 10 ], function(expect, |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 175 |
| 176 testConstructors(); | 176 testConstructors(); |
| 177 testBasicEncoding(); | 177 testBasicEncoding(); |
| 178 testUnionsInArrayEncoding(); | 178 testUnionsInArrayEncoding(); |
| 179 testUnionsInMapEncoding(); | 179 testUnionsInMapEncoding(); |
| 180 testNestedUnionsEncoding(); | 180 testNestedUnionsEncoding(); |
| 181 testNullUnionMemberValidation(); | 181 testNullUnionMemberValidation(); |
| 182 testNullUnionValidation(); | 182 testNullUnionValidation(); |
| 183 this.result = "PASS"; | 183 this.result = "PASS"; |
| 184 }); | 184 }); |
| OLD | NEW |