# 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("../build_webui_tests.gni")
build_webui_tests("build") {
files = [
"advanced_dialog_test.ts",
"advanced_item_test.ts",
"button_strip_interactive_test.ts",
"button_strip_test.ts",
"color_settings_test.ts",
"copies_settings_test.ts",
"custom_margins_test.ts",
"destination_dialog_test.ts",
"destination_item_test.ts",
"destination_list_test.ts",
"destination_settings_test.ts",
"destination_store_test.ts",
"dpi_settings_test.ts",
"duplex_settings_test.ts",
"header_test.ts",
"invalid_settings_test.ts",
"key_event_test.ts",
"layout_settings_test.ts",
"margins_settings_test.ts",
"media_size_settings_test.ts",
"media_type_settings_test.ts",
"model_settings_availability_test.ts",
"model_settings_policy_test.ts",
"model_test.ts",
"native_layer_stub.ts",
"number_settings_section_interactive_test.ts",
"number_settings_section_test.ts",
"other_options_settings_test.ts",
"pages_per_sheet_settings_test.ts",
"pages_settings_test.ts",
"pdf_toolbar_manager_test.ts",
"pdf_viewer_test.ts",
"pdf_zoom_toolbar_test.ts",
"policy_test.ts",
"preview_area_test.ts",
"preview_generation_test.ts",
"print_button_test.ts",
"print_preview_app_test.ts",
"print_preview_sidebar_test.ts",
"print_preview_test_utils.ts",
"restore_state_test.ts",
"scaling_settings_interactive_test.ts",
"scaling_settings_test.ts",
"select_mixin_test.ts",
"settings_select_test.ts",
"test_plugin_proxy.ts",
]
if (is_mac || is_win) {
files += [ "system_dialog_test.ts" ]
}
if (is_chromeos) {
files += [
"destination_dialog_cros_interactive_test.ts",
"destination_dialog_cros_test.ts",
"destination_dropdown_cros_test.ts",
"destination_item_test_cros.ts",
"destination_search_test_chromeos.ts",
"native_layer_cros_stub.ts",
"pin_settings_test.ts",
"print_server_store_test.ts",
"printer_setup_info_cros_test.ts",
"printer_status_test.ts",
"searchable_drop_down_cros_test.ts",
]
} else {
files += [
"destination_dialog_interactive_test.ts",
"destination_search_test.ts",
"destination_select_test.ts",
]
files += [ "link_container_test.ts" ]
}
ts_path_mappings = [
"chrome://print/print_preview.js|" + rebase_path(
"$root_gen_dir/chrome/browser/resources/print_preview/tsc/print_preview.d.ts",
target_gen_dir),
"chrome://print/pdf/*|" +
rebase_path("$root_gen_dir/chrome/browser/resources/pdf/tsc/*",
target_gen_dir),
]
ts_definitions = [
"//tools/typescript/definitions/chrome_event.d.ts",
"//tools/typescript/definitions/pending.d.ts",
"//tools/typescript/definitions/mime_handler_private.d.ts",
]
ts_deps = [
"//chrome/browser/resources/pdf:build_ts",
"//chrome/browser/resources/print_preview:build_ts",
"//third_party/polymer/v3_0:library",
"//ui/webui/resources/cr_elements:build_ts",
"//ui/webui/resources/js:build_ts",
]
}