| 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 "console", | 6 "console", |
| 7 "file", | 7 "file", |
| 8 "gin/test/expect", | 8 "gin/test/expect", |
| 9 "mojo/public/interfaces/bindings/tests/validation_test_interfaces.mojom", | 9 "mojo/public/interfaces/bindings/tests/validation_test_interfaces.mojom", |
| 10 "mojo/public/js/bindings/buffer", | 10 "mojo/public/js/bindings/buffer", |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 console.log("[Test message validation failed: " + testFiles[i] + " ]"); | 223 console.log("[Test message validation failed: " + testFiles[i] + " ]"); |
| 224 expect(actualResult).toEqual(expectedResult); | 224 expect(actualResult).toEqual(expectedResult); |
| 225 } | 225 } |
| 226 } | 226 } |
| 227 | 227 |
| 228 function testConformanceMessageValidation() { | 228 function testConformanceMessageValidation() { |
| 229 testMessageValidation("conformance_", [ | 229 testMessageValidation("conformance_", [ |
| 230 testInterface.ConformanceTestInterfaceStub.prototype.validator]); | 230 testInterface.ConformanceTestInterfaceStub.prototype.validator]); |
| 231 } | 231 } |
| 232 | 232 |
| 233 function testNotImplementedMessageValidation() { |
| 234 testMessageValidation("not_implemented_", [ |
| 235 testInterface.ConformanceTestInterfaceStub.prototype.validator]); |
| 236 } |
| 237 |
| 233 function testIntegrationMessageValidation() { | 238 function testIntegrationMessageValidation() { |
| 234 testMessageValidation("integration_", [ | 239 testMessageValidation("integration_", [ |
| 235 testInterface.IntegrationTestInterface1Stub.prototype.validator, | 240 testInterface.IntegrationTestInterface1Stub.prototype.validator, |
| 236 testInterface.IntegrationTestInterface2Proxy.prototype.validator]); | 241 testInterface.IntegrationTestInterface2Proxy.prototype.validator]); |
| 237 } | 242 } |
| 238 | 243 |
| 239 expect(checkTestMessageParser()).toBeNull(); | 244 expect(checkTestMessageParser()).toBeNull(); |
| 240 testConformanceMessageValidation(); | 245 testConformanceMessageValidation(); |
| 241 testIntegrationMessageValidation(); | 246 testIntegrationMessageValidation(); |
| 242 this.result = "PASS"; | 247 this.result = "PASS"; |
| 243 }); | 248 }); |
| OLD | NEW |