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

Unified Diff: mojo/public/bindings/js/test/run_js_tests.cc

Issue 68323004: Port Mojo's sample_service.cc to JavaScript (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/test/run_js_tests.cc
diff --git a/mojo/public/bindings/js/test/run_js_tests.cc b/mojo/public/bindings/js/test/run_js_tests.cc
index 00f7574f328487001d7f67636f7ea391a8ab3393..c558547554aeb83267f009406e91e18a1129b169 100644
--- a/mojo/public/bindings/js/test/run_js_tests.cc
+++ b/mojo/public/bindings/js/test/run_js_tests.cc
@@ -45,6 +45,18 @@ TEST(JSTest, codec) {
RunTest("codec_unittests.js");
}
+TEST(JSTest, sample_test) {
+ base::FilePath path;
+ PathService::Get(base::DIR_SOURCE_ROOT, &path);
+ path = path.AppendASCII("mojo")
+ .AppendASCII("public")
+ .AppendASCII("bindings")
+ .AppendASCII("sample")
+ .AppendASCII("sample_test.js");
+ TestRunnerDelegate delegate;
+ gin::RunTestFromFile(path, &delegate);
+}
+
} // namespace
} // namespace js
} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698