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