OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/codec", | 7 "mojo/public/js/codec", |
8 "mojo/public/interfaces/bindings/tests/rect.mojom", | 8 "mojo/public/interfaces/bindings/tests/rect.mojom", |
9 "mojo/public/interfaces/bindings/tests/sample_service.mojom", | 9 "mojo/public/interfaces/bindings/tests/sample_service.mojom", |
10 "mojo/public/interfaces/bindings/tests/test_structs.mojom", | 10 "mojo/public/interfaces/bindings/tests/test_structs.mojom", |
11 ], function(expect, codec, rect, sample, structs) { | 11 ], function(expect, codec, rect, sample, structs) { |
12 testBar(); | 12 testBar(); |
13 testFoo(); | 13 testFoo(); |
14 testNamedRegion(); | 14 testNamedRegion(); |
15 testTypes(); | 15 testTypes(); |
16 testAlign(); | 16 testAlign(); |
17 testUtf8(); | 17 testUtf8(); |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 expect(actualMemory.length).toEqual(expectedMemory.length); | 249 expect(actualMemory.length).toEqual(expectedMemory.length); |
250 expect(actualMemory).toEqual(expectedMemory); | 250 expect(actualMemory).toEqual(expectedMemory); |
251 | 251 |
252 var reader = new codec.MessageReader(message); | 252 var reader = new codec.MessageReader(message); |
253 expect(reader.payloadSize).toBe(payloadSize); | 253 expect(reader.payloadSize).toBe(payloadSize); |
254 expect(reader.messageName).toBe(messageName); | 254 expect(reader.messageName).toBe(messageName); |
255 var str2 = reader.decoder.decodeStringPointer(); | 255 var str2 = reader.decoder.decodeStringPointer(); |
256 expect(str2).toEqual(str); | 256 expect(str2).toEqual(str); |
257 } | 257 } |
258 }); | 258 }); |
OLD | NEW |