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'; |