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

Unified Diff: chrome/test/base/js2gtest.gni

Issue 1302763002: Add tests for braille commands. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@js2gtesterr
Patch Set: Document gn template args, rename extra_gen_files to gen_include_files Created 5 years, 4 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
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/testing/tester.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/js2gtest.gni
diff --git a/chrome/test/base/js2gtest.gni b/chrome/test/base/js2gtest.gni
index 213e7b5ba5580de50fbd37715805ba3927432dc0..0ae79a9d18a0067b1d05e55bfa2bb6e4bc425a13 100644
--- a/chrome/test/base/js2gtest.gni
+++ b/chrome/test/base/js2gtest.gni
@@ -4,6 +4,19 @@
import("//build/module_args/v8.gni")
+# Variables:
+# test_type: One of 'webui', 'unit' or 'extension' indicating what
+# environment the test runs under.
+# sources: List of javascript test source files.
+# deps_js: Javascript file with closure library dependencies. Only needed
+# if the test fixtures use closureModuleDeps.
+# gen_include_files: List of javascript files used in GEN_INCLUDE calls
+# in the tests and therefore considered input to the C++ generation step.
+# extra_js_files: List of javascript files needed by the test at runtime,
+# typically listed in the extraLibraries member of the test fixture.
+# defines
+# deps
+# visibility
template("js2gtest") {
assert(defined(invoker.test_type) &&
(invoker.test_type == "webui" || invoker.test_type == "unit" ||
@@ -35,6 +48,9 @@ template("js2gtest") {
if (defined(invoker.deps_js)) {
inputs += [ invoker.deps_js ]
}
+ if (defined(invoker.gen_include_files)) {
+ inputs += invoker.gen_include_files
+ }
# Outputs. The script will copy the source files to the output directory,
# which then must be treated as runtime data. The generated .cc file isn't
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/testing/tester.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698