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

Unified Diff: mojo/public/js/bindings/validation_unittests.js

Issue 488173006: Integrate Mojo JS validation bindings with the Router (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Final changes Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: mojo/public/js/bindings/validation_unittests.js
diff --git a/mojo/public/js/bindings/validation_unittests.js b/mojo/public/js/bindings/validation_unittests.js
index be07ac97a08121c014be3f77b51accecadd7519e..cfba1162c95f5b468663428691227cec2e6b8936 100644
--- a/mojo/public/js/bindings/validation_unittests.js
+++ b/mojo/public/js/bindings/validation_unittests.js
@@ -227,19 +227,17 @@ define([
function testConformanceMessageValidation() {
testMessageValidation("conformance_", [
- testInterface.validateConformanceTestInterfaceRequest,
- ]);
+ testInterface.ConformanceTestInterfaceStub.prototype.validator]);
}
function testIntegrationMessageValidation() {
testMessageValidation("integration_", [
- testInterface.validateIntegrationTestInterface1Request,
- testInterface.validateIntegrationTestInterface2Response
- ]);
+ testInterface.IntegrationTestInterface1Stub.prototype.validator,
+ testInterface.IntegrationTestInterface2Proxy.prototype.validator]);
}
+ expect(checkTestMessageParser()).toBeNull();
testConformanceMessageValidation();
testIntegrationMessageValidation();
- expect(checkTestMessageParser()).toBeNull();
this.result = "PASS";
});
« no previous file with comments | « mojo/public/js/bindings/router.js ('k') | mojo/public/tools/bindings/generators/js_templates/interface_definition.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698