Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(456)

Side by Side Diff: mojo/public/js/bindings/validation_unittests.js

Issue 522353003: mojo: Run validation tests on java (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move backward compatibility test o its own package. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698