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

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

Issue 411553003: Validate incoming JS Message Headers: test message parser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/bindings/js/validation_unittests.js
diff --git a/chrome/test/data/extensions/platform_apps/web_view/addremove/test.js b/mojo/bindings/js/validation_unittests.js
similarity index 56%
copy from chrome/test/data/extensions/platform_apps/web_view/addremove/test.js
copy to mojo/bindings/js/validation_unittests.js
index 1886432c3055a84510594bb8c7e0d3ac28feb045..61923b25a14377807675dbb2cc9fe80b3995d8e2 100644
--- a/chrome/test/data/extensions/platform_apps/web_view/addremove/test.js
+++ b/mojo/bindings/js/validation_unittests.js
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-chrome.app.runtime.onLaunched.addListener(function() {
- chrome.app.window.create('embedder.html', {}, function () {});
+define([
+ "mojo/bindings/js/message_file_parser"
+ ], function(parser) {
+
+ parser.testMessageParser();
+ this.result = "PASS";
});
« mojo/bindings/js/message_file_parser.js ('K') | « mojo/bindings/js/run_js_tests.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698