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

Unified Diff: mojo/public/js/bindings/tests/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: Factored common Buffer class, moved JS binding tests 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/public/js/bindings/tests/validation_unittests.js
diff --git a/gin/test/gtest_unittests.js b/mojo/public/js/bindings/tests/validation_unittests.js
similarity index 53%
copy from gin/test/gtest_unittests.js
copy to mojo/public/js/bindings/tests/validation_unittests.js
index 1d566d5d22622f5eafddc26aae48bab52f5eef5d..05f7f1f870c72780932d732bedc0cd43195113ff 100644
--- a/gin/test/gtest_unittests.js
+++ b/mojo/public/js/bindings/tests/validation_unittests.js
@@ -2,10 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-define(["gtest"], function(gtest) {
- gtest.expectTrue(true, "true is true");
- gtest.expectFalse(false, "false is false");
- gtest.expectTrue(this, "this is " + this);
+define([
+ "gin/test/expect",
+ "mojo/bindings/js/message_file_parser"
+ ], function(expect, parser) {
+
+ expect(parser.checkMessageFileParser()).toBeNull();
yzshen1 2014/07/23 07:26:55 Why putting the testing code in message_file_parse
hansmuller 2014/07/23 18:06:36 I didn't wanted to export parser internals like Fi
yzshen1 2014/07/23 19:53:38 I am not sure I understand: The parser will need t
hansmuller 2014/07/23 21:43:44 What I'd written for the original patch was to inc
this.result = "PASS";
});

Powered by Google App Engine
This is Rietveld 408576698