chromium/chrome/test/data/webui/chromeos/gaia_action_buttons/BUILD.gn

# Copyright 2020 The Chromium Authors
# 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")

js_type_check("closure_compile") {
  is_polymer3 = true
  closure_flags = default_closure_args + [
                    "browser_resolver_prefix_replacements=\"chrome://chrome-signin/gaia_action_buttons/=" + rebase_path(
                            "//chrome/browser/resources/chromeos/gaia_action_buttons/",
                            root_build_dir) + "\"",
                    "browser_resolver_prefix_replacements=\"chrome://webui-test/=" + rebase_path(
                            "//chrome/test/data/webui/",
                            root_build_dir) + "\"",
                    "js_module_root=" + rebase_path("//chrome/test/data/webui/",
                                                    root_build_dir),
                    "js_module_root=./gen/chrome/test/data/webui/",
                    "js_module_root=" +
                        rebase_path("//chrome/browser/resources/chromeos/",
                                    root_build_dir),
                    "js_module_root=./gen/chrome/browser/resources/chromeos/",
                    "js_module_root=" +
                        rebase_path("//chrome/browser/resources/",
                                    root_build_dir),
                    "js_module_root=./gen/chrome/browser/resources/",
                  ]
  deps = [ ":gaia_action_buttons_test" ]
}

js_library("gaia_action_buttons_test") {
  deps = [
    "..:chai_assert",
    "//ash/webui/common/resources:assert",
    "//ash/webui/common/resources:event_target",
    "//chrome/browser/resources/chromeos/gaia_action_buttons:gaia_action_buttons",
  ]
  externs_list = [ "$externs_path/mocha-2.5.js" ]
}