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

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

Issue 59153005: Begin implementing V8 bindings for Mojo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix skipped comment Created 7 years, 1 month 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/bindings/js/mojo_unittests.js
diff --git a/chrome/test/data/extensions/error_console/content_script_log_and_runtime_error/content_script.js b/mojo/public/bindings/js/mojo_unittests.js
similarity index 58%
copy from chrome/test/data/extensions/error_console/content_script_log_and_runtime_error/content_script.js
copy to mojo/public/bindings/js/mojo_unittests.js
index ae581fbbb252c1007778277293a92728d1cbc7bd..1e24ed8f8237e02d0c3bbf8e79341b0453e58f41 100644
--- a/chrome/test/data/extensions/error_console/content_script_log_and_runtime_error/content_script.js
+++ b/mojo/public/bindings/js/mojo_unittests.js
@@ -2,11 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-function logHelloWorld() {
- console.log("Hello, World!");
+function main(mojo) {
+ mojo.gtest.expectTrue(mojo.core, "mojo.core");
+ mojo.gtest.expectFalse(mojo.foo, "mojo.foo");
}
-
-logHelloWorld();
-
-var bar = undefined;
-bar.foo = 'baz';

Powered by Google App Engine
This is Rietveld 408576698