chromium/chrome/test/data/webui/side_panel/read_anything/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")

assert(!is_android)

build_webui_tests("build") {
  is_chrome_untrusted = true
  files = [
    "app_style_updater_test.ts",
    "checkmark_visible_on_selected_test.ts",
    "voice_selection_menu_test.ts",
    "read_aloud_flag_test.ts",
    "font_size_test.ts",
    "font_menu_test.ts",
    "color_menu_test.ts",
    "letter_spacing_test.ts",
    "line_spacing_test.ts",
    "play_pause_test.ts",
    "links_toggle_button_test.ts",
    "rate_selection_test.ts",
    "fake_reading_mode.ts",
    "fake_tree_builder.ts",
    "language_change_test.ts",
    "voice_selection_test.ts",
    "fake_tree_builder_test.ts",
    "prefs_test.ts",
    "highlight_toggle_test.ts",
    "app_receives_toolbar_changes_test.ts",
    "test_color_updater_browser_proxy.ts",
    "test_metrics_browser_proxy.ts",
    "language_menu_test.ts",
    "loading_screen_test.ts",
    "links_toggled_integration_test.ts",
    "common.ts",
    "common_test.ts",
    "fake_speech_synthesis.ts",
    "speech_test.ts",
    "voice_language_util_test.ts",
    "read_anything_logger_test.ts",
    "read_aloud_update_content_selection_test.ts",
    "read_aloud_update_content_selection_pdf_test.ts",
    "read_aloud_highlighting_test.ts",
    "toolbar_overflow_test.ts",
    "update_content_selection_with_highlights_test.ts",
    "next_previous_granularity_test.ts",
    "update_content_selection_test.ts",
    "update_content_test.ts",
    "update_content_integration_test.ts",
    "speech_uses_max_text_length_test.ts",
    "word_boundaries_test.ts",
    "word_highlighting_test.ts",
    "word_highlighting_disabled_test.ts",
    "update_voice_pack_test.ts",
    "toolbar_test.ts",
  ]

  ts_definitions = [
    "//chrome/browser/resources/side_panel/read_anything/read_anything.d.ts",
  ]

  ts_path_mappings = [ "chrome-untrusted://read-anything-side-panel.top-chrome/*|" + rebase_path(
                           "$root_gen_dir/chrome/browser/resources/side_panel/read_anything/tsc/*",
                           target_gen_dir) ]
  ts_deps = [
    "//chrome/browser/resources/side_panel/read_anything:build_ts",
    "//third_party/polymer/v3_0:library",
    "//ui/webui/resources/cr_components/color_change_listener:build_ts",
    "//ui/webui/resources/cr_elements:build_ts",
  ]
}