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