chromium/chrome/test/data/webui/chromeos/ash_common/cr_elements/BUILD.gn

# Copyright 2023 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("../../../build_webui_tests.gni")

build_webui_tests("build") {
  files = [
    "cr_a11y_announcer_test.ts",
    "cr_action_menu_test.ts",
    "cr_auto_img_test.ts",
    "cr_button_test.ts",
    "cr_card_radio_button_test.ts",
    "cr_checkbox_test.ts",
    "cr_container_shadow_mixin_test.ts",
    "cr_dialog_test.ts",
    "cr_drawer_test.ts",
    "cr_expand_button_test.ts",
    "cr_focus_row_mixin_test.ts",
    "cr_icon_button_test.ts",
    "cr_input_test.ts",
    "cr_lazy_render_test.ts",
    "cr_link_row_test.ts",
    "cr_lottie_test.ts",
    "cr_menu_selector_focus_test.ts",
    "cr_policy_indicator_mixin_test.ts",
    "cr_policy_indicator_test.ts",
    "cr_policy_pref_indicator_test.ts",
    "cr_policy_strings.ts",
    "cr_radio_button_test.ts",
    "cr_radio_group_test.ts",
    "cr_scrollable_mixin_test.ts",
    "cr_search_field_test.ts",
    "cr_searchable_drop_down_test.ts",
    "cr_slider_test.ts",
    "cr_tabs_test.ts",
    "cr_textarea_focus_test.ts",
    "cr_toast_manager_test.ts",
    "cr_toast_test.ts",
    "cr_toggle_test.ts",
    "cr_toolbar_test.ts",
    "cr_toolbar_focus_test.ts",
    "cr_toolbar_search_field_test.ts",
    "cr_view_manager_test.ts",
    "find_shortcut_mixin_test.ts",
    "i18n_mixin_test.ts",
    "list_property_update_mixin_test.ts",
    "localized_link_test.ts",
    "store_client_test.ts",
    "web_ui_listener_mixin_test.ts",
  ]

  # Using custom config to turn off useDefineForClassFields TS compiler flag
  # which is necessary when defining Polymer elements.
  ts_tsconfig_base = "tsconfig_base.json"
  ts_definitions = [
    "//tools/typescript/definitions/chrome_event.d.ts",
    "//tools/typescript/definitions/settings_private.d.ts",
  ]

  ts_deps = [
    "//ash/webui/common/resources/cr_elements:build_ts",
    "//third_party/polymer/v3_0:library",
    "//ui/webui/resources/js:build_ts",
  ]
}