js_unit_tests.gni 871 B

123456789101112131415161718192021222324
  1. # Copyright 2018 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. import("//third_party/closure_compiler/compile_js.gni")
  5. # Simple wrapper around js_library to describe a unit test.
  6. template("js_unittest") {
  7. js_library(target_name) {
  8. testonly = true
  9. # Forward everything that js_library forwards except testonly (omitting that
  10. # causes gn to emit "Assignment had no effect" if it's added redundantly).
  11. forward_variables_from(invoker,
  12. [
  13. "deps",
  14. "externs_list",
  15. "extra_deps",
  16. "extra_sources",
  17. "sources",
  18. "visibility",
  19. ])
  20. }
  21. }