diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-12 14:27:29 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-13 09:35:20 +0000 |
commit | c30a6232df03e1efbd9f3b226777b07e087a1122 (patch) | |
tree | e992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/third_party/devtools-frontend/src/test | |
parent | 7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff) | |
download | qtwebengine-chromium-85-based.tar.gz |
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/third_party/devtools-frontend/src/test')
59 files changed, 555 insertions, 47 deletions
diff --git a/chromium/third_party/devtools-frontend/src/test/conductor/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/conductor/BUILD.gn index 80fe91e26d5..baa8ac5a281 100644 --- a/chromium/third_party/devtools-frontend/src/test/conductor/BUILD.gn +++ b/chromium/third_party/devtools-frontend/src/test/conductor/BUILD.gn @@ -4,8 +4,14 @@ import("../../third_party/typescript/typescript.gni") -ts_library("conductor") { - testonly = true +group("conductor") { + deps = [ + ":implementation", + "../../scripts/hosted_mode", + ] +} + +node_ts_library("implementation") { sources = [ "hooks.ts", "mocha_hooks.ts", diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/BUILD.gn index 05f9ef3c0ad..c8637419889 100644 --- a/chromium/third_party/devtools-frontend/src/test/e2e/BUILD.gn +++ b/chromium/third_party/devtools-frontend/src/test/e2e/BUILD.gn @@ -2,25 +2,45 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +import("../../scripts/build/copy_to_gen.gni") import("../../third_party/typescript/typescript.gni") -ts_library("e2e") { - testonly = true +group("e2e") { + deps = [ + ":config", + ":tests", + "resources", + ] +} +node_ts_library("tests") { deps = [ "animations", "application", + "changes", "console", + "coverage", + "cross_tool_integration", "elements", + "emulation", "host", "layers", "lighthouse", "media", + "memory", "network", + "performance", "profiler", "rendering", "search", + "security", + "sensors", "snippets", "sources", + "webaudio", ] } + +copy_to_gen("config") { + sources = [ ".mocharc.js" ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/animations/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/animations/BUILD.gn index 360d5ee6310..400ef8705df 100644 --- a/chromium/third_party/devtools-frontend/src/test/e2e/animations/BUILD.gn +++ b/chromium/third_party/devtools-frontend/src/test/e2e/animations/BUILD.gn @@ -4,8 +4,7 @@ import("../../../third_party/typescript/typescript.gni") -ts_library("animations") { - testonly = true +node_ts_library("animations") { sources = [ "animations_test.ts" ] deps = [ diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/application/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/application/BUILD.gn index 73e00aee426..6dca0238f90 100644 --- a/chromium/third_party/devtools-frontend/src/test/e2e/application/BUILD.gn +++ b/chromium/third_party/devtools-frontend/src/test/e2e/application/BUILD.gn @@ -4,8 +4,7 @@ import("../../../third_party/typescript/typescript.gni") -ts_library("application") { - testonly = true +node_ts_library("application") { sources = [ "cookies_test.ts", "session-storage_test.ts", diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/changes/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/changes/BUILD.gn new file mode 100644 index 00000000000..15b3cca6b94 --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/e2e/changes/BUILD.gn @@ -0,0 +1,14 @@ +# Copyright 2020 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/typescript/typescript.gni") + +node_ts_library("changes") { + sources = [ "changes_test.ts" ] + + deps = [ + "../../shared", + "../helpers", + ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/console/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/console/BUILD.gn index 9190fe52d14..3f1e9e8661a 100644 --- a/chromium/third_party/devtools-frontend/src/test/e2e/console/BUILD.gn +++ b/chromium/third_party/devtools-frontend/src/test/e2e/console/BUILD.gn @@ -4,11 +4,13 @@ import("../../../third_party/typescript/typescript.gni") -ts_library("console") { - testonly = true +node_ts_library("console") { sources = [ + "console-autocomplete_test.ts", "console-message-format_test.ts", "console-repl-mode_test.ts", + "console-trim-long-traces_test.ts", + "issues-toolbar_test.ts", ] deps = [ diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/coverage/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/coverage/BUILD.gn new file mode 100644 index 00000000000..6f86d57ce54 --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/e2e/coverage/BUILD.gn @@ -0,0 +1,14 @@ +# Copyright 2020 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/typescript/typescript.gni") + +node_ts_library("coverage") { + sources = [ "coverage_test.ts" ] + + deps = [ + "../../shared", + "../helpers", + ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/cross_tool_integration/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/cross_tool_integration/BUILD.gn new file mode 100644 index 00000000000..ceda26e34f1 --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/e2e/cross_tool_integration/BUILD.gn @@ -0,0 +1,17 @@ +# Copyright 2020 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/typescript/typescript.gni") + +node_ts_library("cross_tool_integration") { + sources = [ + "browser_test.ts", + "workflow_test.ts", + ] + + deps = [ + "../../shared", + "../helpers", + ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/elements/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/elements/BUILD.gn index b90709f9f85..f0e66b39be9 100644 --- a/chromium/third_party/devtools-frontend/src/test/e2e/elements/BUILD.gn +++ b/chromium/third_party/devtools-frontend/src/test/e2e/elements/BUILD.gn @@ -4,9 +4,10 @@ import("../../../third_party/typescript/typescript.gni") -ts_library("elements") { - testonly = true +node_ts_library("elements") { sources = [ + "adornment_test.ts", + "computed-pane-properties_test.ts", "element-breadcrumbs_test.ts", "pseudo-states_test.ts", "selection-after-delete_test.ts", diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/emulation/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/emulation/BUILD.gn new file mode 100644 index 00000000000..325ef04fd94 --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/e2e/emulation/BUILD.gn @@ -0,0 +1,17 @@ +# Copyright 2020 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/typescript/typescript.gni") + +node_ts_library("emulation") { + sources = [ + "dual-screen_test.ts", + "media-query-inspector_test.ts", + ] + + deps = [ + "../../shared", + "../helpers", + ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/helpers/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/helpers/BUILD.gn index 3f04fa8f68d..2f7a997dea7 100644 --- a/chromium/third_party/devtools-frontend/src/test/e2e/helpers/BUILD.gn +++ b/chromium/third_party/devtools-frontend/src/test/e2e/helpers/BUILD.gn @@ -4,22 +4,30 @@ import("../../../third_party/typescript/typescript.gni") -ts_library("helpers") { - testonly = true +node_ts_library("helpers") { sources = [ "animations-helpers.ts", "application-helpers.ts", + "changes-helpers.ts", "console-helpers.ts", + "coverage-helpers.ts", + "cross-tool-helper.ts", "elements-helpers.ts", + "emulation-helpers.ts", "event-listeners-helpers.ts", "layers-helpers.ts", "lighthouse-helpers.ts", "media-helpers.ts", + "memory-helpers.ts", + "network-helpers.ts", + "performance-helpers.ts", "profiler-helpers.ts", "quick_open-helpers.ts", "search-helpers.ts", + "security-helpers.ts", "settings-helpers.ts", "sources-helpers.ts", + "webaudio-helpers.ts", ] deps = [ "../../shared" ] diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/host/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/host/BUILD.gn index 4d63fc50e37..1f2edd959f1 100644 --- a/chromium/third_party/devtools-frontend/src/test/e2e/host/BUILD.gn +++ b/chromium/third_party/devtools-frontend/src/test/e2e/host/BUILD.gn @@ -4,8 +4,7 @@ import("../../../third_party/typescript/typescript.gni") -ts_library("host") { - testonly = true +node_ts_library("host") { sources = [ "user-metrics_test.ts" ] deps = [ diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/layers/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/layers/BUILD.gn index ca44458c9c0..35b7579b460 100644 --- a/chromium/third_party/devtools-frontend/src/test/e2e/layers/BUILD.gn +++ b/chromium/third_party/devtools-frontend/src/test/e2e/layers/BUILD.gn @@ -4,8 +4,7 @@ import("../../../third_party/typescript/typescript.gni") -ts_library("layers") { - testonly = true +node_ts_library("layers") { sources = [ "layers_test.ts" ] deps = [ diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/lighthouse/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/lighthouse/BUILD.gn index f4ea368e41a..b34db72430e 100644 --- a/chromium/third_party/devtools-frontend/src/test/e2e/lighthouse/BUILD.gn +++ b/chromium/third_party/devtools-frontend/src/test/e2e/lighthouse/BUILD.gn @@ -4,8 +4,7 @@ import("../../../third_party/typescript/typescript.gni") -ts_library("lighthouse") { - testonly = true +node_ts_library("lighthouse") { sources = [ "generate-report.ts" ] deps = [ diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/media/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/media/BUILD.gn index cc7134c4922..cdeb84abc05 100644 --- a/chromium/third_party/devtools-frontend/src/test/e2e/media/BUILD.gn +++ b/chromium/third_party/devtools-frontend/src/test/e2e/media/BUILD.gn @@ -4,8 +4,7 @@ import("../../../third_party/typescript/typescript.gni") -ts_library("media") { - testonly = true +node_ts_library("media") { sources = [ "media-tab_test.ts" ] deps = [ diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/memory/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/memory/BUILD.gn new file mode 100644 index 00000000000..3c4a2230a34 --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/e2e/memory/BUILD.gn @@ -0,0 +1,14 @@ +# Copyright 2020 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/typescript/typescript.gni") + +node_ts_library("memory") { + sources = [ "memory_test.ts" ] + + deps = [ + "../../shared", + "../helpers", + ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/network/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/network/BUILD.gn index 82992eec025..489bafcd14d 100644 --- a/chromium/third_party/devtools-frontend/src/test/e2e/network/BUILD.gn +++ b/chromium/third_party/devtools-frontend/src/test/e2e/network/BUILD.gn @@ -4,9 +4,14 @@ import("../../../third_party/typescript/typescript.gni") -ts_library("network") { - testonly = true - sources = [ "network-datagrid_test.ts" ] +node_ts_library("network") { + sources = [ + "network-datagrid_test.ts", + "network_test.ts", + ] - deps = [ "../../shared" ] + deps = [ + "../../shared", + "../helpers", + ] } diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/performance/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/performance/BUILD.gn new file mode 100644 index 00000000000..bef7052b230 --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/e2e/performance/BUILD.gn @@ -0,0 +1,14 @@ +# Copyright 2020 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/typescript/typescript.gni") + +node_ts_library("performance") { + sources = [ "recording_test.ts" ] + + deps = [ + "../../shared", + "../helpers", + ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/profiler/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/profiler/BUILD.gn index a5cbd0559a3..469b2fdf926 100644 --- a/chromium/third_party/devtools-frontend/src/test/e2e/profiler/BUILD.gn +++ b/chromium/third_party/devtools-frontend/src/test/e2e/profiler/BUILD.gn @@ -4,8 +4,7 @@ import("../../../third_party/typescript/typescript.gni") -ts_library("profiler") { - testonly = true +node_ts_library("profiler") { sources = [ "profiler_test.ts" ] deps = [ diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/rendering/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/rendering/BUILD.gn index 2056221f505..863dfd1ea35 100644 --- a/chromium/third_party/devtools-frontend/src/test/e2e/rendering/BUILD.gn +++ b/chromium/third_party/devtools-frontend/src/test/e2e/rendering/BUILD.gn @@ -4,8 +4,7 @@ import("../../../third_party/typescript/typescript.gni") -ts_library("rendering") { - testonly = true +node_ts_library("rendering") { sources = [ "vision-deficiencies_test.ts" ] deps = [ diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/resources/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/resources/BUILD.gn new file mode 100644 index 00000000000..b2ba36f40c2 --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/e2e/resources/BUILD.gn @@ -0,0 +1,27 @@ +# Copyright 2020 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. + +group("resources") { + deps = [ + "animations", + "application", + "changes", + "console", + "coverage", + "cross_tool", + "elements", + "emulation", + "layers", + "lighthouse", + "media", + "memory", + "network", + "pages", + "performance", + "profiler", + "search", + "sources", + "webaudio", + ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/resources/animations/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/resources/animations/BUILD.gn new file mode 100644 index 00000000000..227a3e230cc --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/e2e/resources/animations/BUILD.gn @@ -0,0 +1,9 @@ +# Copyright 2020 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("../../../../scripts/build/copy_to_gen.gni") + +copy_to_gen("animations") { + sources = [ "default.html" ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/resources/application/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/resources/application/BUILD.gn new file mode 100644 index 00000000000..067890b2b9b --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/e2e/resources/application/BUILD.gn @@ -0,0 +1,13 @@ +# Copyright 2020 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("../../../../scripts/build/copy_to_gen.gni") + +copy_to_gen("application") { + sources = [ + "cookies.html", + "session-storage.html", + "websql-database.html", + ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/resources/changes/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/resources/changes/BUILD.gn new file mode 100644 index 00000000000..96b61152693 --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/e2e/resources/changes/BUILD.gn @@ -0,0 +1,9 @@ +# Copyright 2020 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("../../../../scripts/build/copy_to_gen.gni") + +copy_to_gen("changes") { + sources = [ "styled-page.html" ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/resources/console/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/resources/console/BUILD.gn new file mode 100644 index 00000000000..654296c2385 --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/e2e/resources/console/BUILD.gn @@ -0,0 +1,27 @@ +# Copyright 2020 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("../../../../scripts/build/copy_to_gen.gni") + +copy_to_gen("console") { + sources = [ + "big-int.html", + "built-ins.html", + "cookie-issue.html", + "document-write.html", + "dom-interactions.html", + "escaping.html", + "navigation/after-navigation.html", + "navigation/after-removal.html", + "navigation/write-to-console.html", + "navigation/write-to-console2.html", + "onunhandledrejection.html", + "primitives.html", + "prototypes.html", + "source-url-exceptions.html", + "stack-overflow.html", + "structured-objects.html", + "uncaught-promise.html", + ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/resources/coverage/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/resources/coverage/BUILD.gn new file mode 100644 index 00000000000..70e6fdbffab --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/e2e/resources/coverage/BUILD.gn @@ -0,0 +1,12 @@ +# Copyright 2020 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("../../../../scripts/build/copy_to_gen.gni") + +copy_to_gen("coverage") { + sources = [ + "default.html", + "script.js", + ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/resources/cross_tool/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/resources/cross_tool/BUILD.gn new file mode 100644 index 00000000000..d3f174d9ff5 --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/e2e/resources/cross_tool/BUILD.gn @@ -0,0 +1,12 @@ +# Copyright 2020 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("../../../../scripts/build/copy_to_gen.gni") + +copy_to_gen("cross_tool") { + sources = [ + "default.html", + "site_with_errors.html", + ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/resources/elements/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/resources/elements/BUILD.gn new file mode 100644 index 00000000000..3f618ae3abc --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/e2e/resources/elements/BUILD.gn @@ -0,0 +1,21 @@ +# Copyright 2020 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("../../../../scripts/build/copy_to_gen.gni") + +copy_to_gen("elements") { + sources = [ + "adornment.html", + "css-variables.html", + "element-breadcrumbs.html", + "focus.html", + "hover.html", + "selection-after-delete.html", + "shadow-roots.html", + "sidebar-event-listeners.html", + "simple-styled-page.html", + "style-pane-properties.html", + "stylesheets-with-various-sources.html", + ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/resources/emulation/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/resources/emulation/BUILD.gn new file mode 100644 index 00000000000..aba8420a8de --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/e2e/resources/emulation/BUILD.gn @@ -0,0 +1,9 @@ +# Copyright 2020 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("../../../../scripts/build/copy_to_gen.gni") + +copy_to_gen("emulation") { + sources = [ "media-query-inspector.html" ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/resources/layers/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/resources/layers/BUILD.gn new file mode 100644 index 00000000000..02aba2a9e6b --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/e2e/resources/layers/BUILD.gn @@ -0,0 +1,9 @@ +# Copyright 2020 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("../../../../scripts/build/copy_to_gen.gni") + +copy_to_gen("layers") { + sources = [ "default.html" ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/resources/lighthouse/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/resources/lighthouse/BUILD.gn new file mode 100644 index 00000000000..a7ff5ac402a --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/e2e/resources/lighthouse/BUILD.gn @@ -0,0 +1,9 @@ +# Copyright 2020 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("../../../../scripts/build/copy_to_gen.gni") + +copy_to_gen("lighthouse") { + sources = [ "empty.html" ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/resources/media/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/resources/media/BUILD.gn new file mode 100644 index 00000000000..aecf65d6ee5 --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/e2e/resources/media/BUILD.gn @@ -0,0 +1,9 @@ +# Copyright 2020 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("../../../../scripts/build/copy_to_gen.gni") + +copy_to_gen("media") { + sources = [ "fisch.webm" ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/resources/memory/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/resources/memory/BUILD.gn new file mode 100644 index 00000000000..b785d43ab80 --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/e2e/resources/memory/BUILD.gn @@ -0,0 +1,9 @@ +# Copyright 2020 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("../../../../scripts/build/copy_to_gen.gni") + +copy_to_gen("memory") { + sources = [ "default.html" ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/resources/network/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/resources/network/BUILD.gn new file mode 100644 index 00000000000..2fa52635e7c --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/e2e/resources/network/BUILD.gn @@ -0,0 +1,16 @@ +# Copyright 2020 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("../../../../scripts/build/copy_to_gen.gni") + +copy_to_gen("network") { + sources = [ + "cacheable.rawresponse", + "last-modified.html", + "last-modified.rawresponse", + "resources-from-cache.html", + "unreachable.rawresponse", + "utf-8.rawresponse", + ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/resources/pages/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/resources/pages/BUILD.gn new file mode 100644 index 00000000000..07a1489ca8c --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/e2e/resources/pages/BUILD.gn @@ -0,0 +1,9 @@ +# Copyright 2020 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("../../../../scripts/build/copy_to_gen.gni") + +copy_to_gen("pages") { + sources = [ "hello-world.html" ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/resources/performance/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/resources/performance/BUILD.gn new file mode 100644 index 00000000000..89753731357 --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/e2e/resources/performance/BUILD.gn @@ -0,0 +1,9 @@ +# Copyright 2020 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("../../../../scripts/build/copy_to_gen.gni") + +copy_to_gen("performance") { + sources = [ "empty.html" ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/resources/profiler/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/resources/profiler/BUILD.gn new file mode 100644 index 00000000000..5f424895a33 --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/e2e/resources/profiler/BUILD.gn @@ -0,0 +1,9 @@ +# Copyright 2020 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("../../../../scripts/build/copy_to_gen.gni") + +copy_to_gen("profiler") { + sources = [ "default.html" ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/resources/search/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/resources/search/BUILD.gn new file mode 100644 index 00000000000..80845e8bd20 --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/e2e/resources/search/BUILD.gn @@ -0,0 +1,13 @@ +# Copyright 2020 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("../../../../scripts/build/copy_to_gen.gni") + +copy_to_gen("search") { + sources = [ + "search.css", + "search.html", + "search.js", + ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/resources/sources/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/resources/sources/BUILD.gn new file mode 100644 index 00000000000..493243b41ac --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/e2e/resources/sources/BUILD.gn @@ -0,0 +1,50 @@ +# Copyright 2020 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("../../../../scripts/build/copy_to_gen.gni") + +copy_to_gen("sources") { + sources = [ + "different-workers.html", + "dynamic-loading-css.html", + "dynamic-loading-javascript.html", + "dynamic.css", + "inline-script.html", + "minified-sourcecode.html", + "minified-sourcecode.js", + "multi-workers-sourcemap.html", + "multi-workers.html", + "multi-workers.js", + "multi-workers.min.js", + "multi-workers.min.js.map", + "navigation/index.html", + "script-with-sourcemap-without-mappings.html", + "script-with-sourcemap-without-mappings.js", + "sourcemap-without-mappings.map", + "wasm/add.wasm", + "wasm/call-to-add-wasm.html", + "wasm/callstack-wasm-to-js.html", + "wasm/callstack-wasm-to-js.wasm", + "wasm/global_variable.html", + "wasm/global_variable.ll", + "wasm/global_variable.wasm", + "wasm/global_variable_with_dwarf.c", + "wasm/global_variable_with_dwarf.html", + "wasm/global_variable_with_dwarf.wasm", + "wasm/scopes.html", + "wasm/scopes.wasm", + "wasm/unreachable.html", + "wasm/unreachable.ll", + "wasm/unreachable.wasm", + "wasm/unreachable_with_dwarf.html", + "wasm/unreachable_with_dwarf.ll", + "wasm/unreachable_with_dwarf.wasm", + "wasm/wasm-with-sourcemap..........map", + "wasm/wasm-with-sourcemap.html", + "wasm/wasm-with-sourcemap.wasm", + "wasm/with-sourcemap.ll", + "worker1.js", + "worker2.js", + ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/resources/webaudio/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/resources/webaudio/BUILD.gn new file mode 100644 index 00000000000..47993c52041 --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/e2e/resources/webaudio/BUILD.gn @@ -0,0 +1,9 @@ +# Copyright 2020 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("../../../../scripts/build/copy_to_gen.gni") + +copy_to_gen("webaudio") { + sources = [ "default.html" ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/search/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/search/BUILD.gn index 63d71fc34c6..4a9a2da8fce 100644 --- a/chromium/third_party/devtools-frontend/src/test/e2e/search/BUILD.gn +++ b/chromium/third_party/devtools-frontend/src/test/e2e/search/BUILD.gn @@ -4,8 +4,7 @@ import("../../../third_party/typescript/typescript.gni") -ts_library("search") { - testonly = true +node_ts_library("search") { sources = [ "search-scope_test.ts" ] deps = [ diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/security/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/security/BUILD.gn new file mode 100644 index 00000000000..b81d97b052d --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/e2e/security/BUILD.gn @@ -0,0 +1,14 @@ +# Copyright 2020 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/typescript/typescript.gni") + +node_ts_library("security") { + sources = [ "security_test.ts" ] + + deps = [ + "../../shared", + "../helpers", + ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/sensors/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/sensors/BUILD.gn index f47fb745a5f..8d0b1f87ed3 100644 --- a/chromium/third_party/devtools-frontend/src/test/e2e/sensors/BUILD.gn +++ b/chromium/third_party/devtools-frontend/src/test/e2e/sensors/BUILD.gn @@ -4,8 +4,7 @@ import("../../../third_party/typescript/typescript.gni") -ts_library("sensors") { - testonly = true +node_ts_library("sensors") { sources = [ "location_test.ts" ] deps = [ diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/snippets/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/snippets/BUILD.gn index ac4d3e6e2c2..bd295e1b6c3 100644 --- a/chromium/third_party/devtools-frontend/src/test/e2e/snippets/BUILD.gn +++ b/chromium/third_party/devtools-frontend/src/test/e2e/snippets/BUILD.gn @@ -4,8 +4,7 @@ import("../../../third_party/typescript/typescript.gni") -ts_library("snippets") { - testonly = true +node_ts_library("snippets") { sources = [ "context-menu_test.ts" ] deps = [ diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/sources/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/sources/BUILD.gn index 0960f43e6b4..7b3ff226778 100644 --- a/chromium/third_party/devtools-frontend/src/test/e2e/sources/BUILD.gn +++ b/chromium/third_party/devtools-frontend/src/test/e2e/sources/BUILD.gn @@ -4,17 +4,19 @@ import("../../../third_party/typescript/typescript.gni") -ts_library("sources") { - testonly = true +node_ts_library("sources") { sources = [ "can-break-with-wasm-sourcemaps_test.ts", "can-format-sourcecode_test.ts", "can-show-files-after-loading_test.ts", "can-show-multiple-workers_test.ts", + "can-show-wasm-scopes_test.ts", "debug-raw-wasm_test.ts", "debugger-language-plugins_test.ts", + "dwarf-cxx-language-plugin_test.ts", "navigation_test.ts", "script-in-multiple-workers_test.ts", + "sourcemap-without-mappings_test.ts", ] deps = [ diff --git a/chromium/third_party/devtools-frontend/src/test/e2e/webaudio/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/e2e/webaudio/BUILD.gn new file mode 100644 index 00000000000..05cfd33d079 --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/e2e/webaudio/BUILD.gn @@ -0,0 +1,14 @@ +# Copyright 2020 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/typescript/typescript.gni") + +node_ts_library("webaudio") { + sources = [ "webaudio_test.ts" ] + + deps = [ + "../../shared", + "../helpers", + ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/perf/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/perf/BUILD.gn index f31c79db9ce..ef32663c949 100644 --- a/chromium/third_party/devtools-frontend/src/test/perf/BUILD.gn +++ b/chromium/third_party/devtools-frontend/src/test/perf/BUILD.gn @@ -2,14 +2,25 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +import("../../scripts/build/copy_to_gen.gni") import("../../third_party/typescript/typescript.gni") -ts_library("perf") { +group("perf") { + deps = [ + ":config", + ":tests", + ] +} + +ts_library("tests") { testonly = true - sources = [ "test-list.ts" ] deps = [ "application", "helpers", ] } + +copy_to_gen("config") { + sources = [ ".mocharc.js" ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/perf/application/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/perf/application/BUILD.gn index c720e56d8a5..fd7a99e1a5a 100644 --- a/chromium/third_party/devtools-frontend/src/test/perf/application/BUILD.gn +++ b/chromium/third_party/devtools-frontend/src/test/perf/application/BUILD.gn @@ -6,7 +6,7 @@ import("../../../third_party/typescript/typescript.gni") ts_library("application") { testonly = true - sources = [ "boot-perf.ts" ] + sources = [ "boot-perf_test.ts" ] deps = [ "../../shared", diff --git a/chromium/third_party/devtools-frontend/src/test/shared/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/shared/BUILD.gn index bcdab3c3e5a..950eb2daf21 100644 --- a/chromium/third_party/devtools-frontend/src/test/shared/BUILD.gn +++ b/chromium/third_party/devtools-frontend/src/test/shared/BUILD.gn @@ -4,12 +4,11 @@ import("../../third_party/typescript/typescript.gni") -ts_library("shared") { - testonly = true +node_ts_library("shared") { sources = [ "config.ts", "helper.ts", "text-color.ts", ] - deps = [ "../conductor" ] + deps = [ "../conductor:implementation" ] } diff --git a/chromium/third_party/devtools-frontend/src/test/unittests/front_end/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/unittests/front_end/BUILD.gn index 6bc249df42e..399359b438b 100644 --- a/chromium/third_party/devtools-frontend/src/test/unittests/front_end/BUILD.gn +++ b/chromium/third_party/devtools-frontend/src/test/unittests/front_end/BUILD.gn @@ -15,10 +15,13 @@ group("front_end") { "inline_editor", "inspector_overlay", "issues", + "media", "persistence", "platform", "protocol_client", "sdk", + "sources", + "test_setup", "text_utils", "ui", ] diff --git a/chromium/third_party/devtools-frontend/src/test/unittests/front_end/browser_sdk/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/unittests/front_end/browser_sdk/BUILD.gn index 85568c5d716..1e070516078 100644 --- a/chromium/third_party/devtools-frontend/src/test/unittests/front_end/browser_sdk/BUILD.gn +++ b/chromium/third_party/devtools-frontend/src/test/unittests/front_end/browser_sdk/BUILD.gn @@ -3,6 +3,7 @@ import("../../../../third_party/typescript/typescript.gni") ts_library("browser_sdk") { testonly = true sources = [ + "FrameManager_test.ts", "IssuesManager_test.ts", "RelatedIssue_test.ts", ] diff --git a/chromium/third_party/devtools-frontend/src/test/unittests/front_end/common/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/unittests/front_end/common/BUILD.gn index 97d871cfa16..d39589dac99 100644 --- a/chromium/third_party/devtools-frontend/src/test/unittests/front_end/common/BUILD.gn +++ b/chromium/third_party/devtools-frontend/src/test/unittests/front_end/common/BUILD.gn @@ -4,6 +4,7 @@ ts_library("common") { testonly = true sources = [ "CharacterIdMap_test.ts", + "ColorUtils_test.ts", "Color_test.ts", "Console_test.ts", "Lazy_test.ts", @@ -17,6 +18,7 @@ ts_library("common") { "TextDictionary_test.ts", "Throttler_test.ts", "Trie_test.ts", + "WasmDisassembly_test.ts", ] deps = [ "../../../../front_end/common" ] diff --git a/chromium/third_party/devtools-frontend/src/test/unittests/front_end/formatter_worker/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/unittests/front_end/formatter_worker/BUILD.gn index cb918a76c8d..62ef05fac4f 100644 --- a/chromium/third_party/devtools-frontend/src/test/unittests/front_end/formatter_worker/BUILD.gn +++ b/chromium/third_party/devtools-frontend/src/test/unittests/front_end/formatter_worker/BUILD.gn @@ -12,8 +12,8 @@ ts_library("formatter_worker") { ] deps = [ "../../../../front_end/formatter_worker", - "../../../../front_end/formatter_worker/acorn", "../../../../front_end/platform", "../../../../front_end/third_party/acorn", + "../../../../front_end/third_party/acorn-loose", ] } diff --git a/chromium/third_party/devtools-frontend/src/test/unittests/front_end/helpers/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/unittests/front_end/helpers/BUILD.gn new file mode 100644 index 00000000000..e7eba9a9199 --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/unittests/front_end/helpers/BUILD.gn @@ -0,0 +1,15 @@ +# Copyright 2020 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/typescript/typescript.gni") + +ts_library("helpers") { + testonly = true + sources = [ + "DOMHelpers.ts", + "InspectorOverlayHelpers.ts", + ] + + deps = [ "../../../../front_end/inspector_overlay" ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/unittests/front_end/inspector_overlay/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/unittests/front_end/inspector_overlay/BUILD.gn index 8a394a28dc0..7f3d6dcaa58 100644 --- a/chromium/third_party/devtools-frontend/src/test/unittests/front_end/inspector_overlay/BUILD.gn +++ b/chromium/third_party/devtools-frontend/src/test/unittests/front_end/inspector_overlay/BUILD.gn @@ -2,7 +2,13 @@ import("../../../../third_party/typescript/typescript.gni") ts_library("inspector_overlay") { testonly = true - sources = [ "common_test.ts" ] + sources = [ + "common_test.ts", + "css_grid_label_helpers_test.ts", + ] - deps = [ "../../../../front_end/inspector_overlay" ] + deps = [ + "../../../../front_end/inspector_overlay", + "../helpers", + ] } diff --git a/chromium/third_party/devtools-frontend/src/test/unittests/front_end/media/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/unittests/front_end/media/BUILD.gn new file mode 100644 index 00000000000..742ccc2946f --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/unittests/front_end/media/BUILD.gn @@ -0,0 +1,8 @@ +import("../../../../third_party/typescript/typescript.gni") + +ts_library("media") { + testonly = true + sources = [ "TickingFlameChartHelpers_test.ts" ] + + deps = [ "../../../../front_end/media" ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/unittests/front_end/sources/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/unittests/front_end/sources/BUILD.gn new file mode 100644 index 00000000000..ef1202fee49 --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/unittests/front_end/sources/BUILD.gn @@ -0,0 +1,12 @@ +# Copyright 2020 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/typescript/typescript.gni") + +ts_library("sources") { + testonly = true + sources = [ "FilePathScoreFunction_test.ts" ] + + deps = [ "../../../../front_end/sources" ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/unittests/front_end/test_setup/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/unittests/front_end/test_setup/BUILD.gn new file mode 100644 index 00000000000..2d9846c3ff3 --- /dev/null +++ b/chromium/third_party/devtools-frontend/src/test/unittests/front_end/test_setup/BUILD.gn @@ -0,0 +1,8 @@ +import("../../../../third_party/typescript/typescript.gni") + +ts_library("test_setup") { + testonly = true + sources = [ "test_setup.ts" ] + + deps = [ "../helpers" ] +} diff --git a/chromium/third_party/devtools-frontend/src/test/unittests/front_end/ui/BUILD.gn b/chromium/third_party/devtools-frontend/src/test/unittests/front_end/ui/BUILD.gn index f97da108e74..4417334bcb7 100644 --- a/chromium/third_party/devtools-frontend/src/test/unittests/front_end/ui/BUILD.gn +++ b/chromium/third_party/devtools-frontend/src/test/unittests/front_end/ui/BUILD.gn @@ -7,7 +7,9 @@ ts_library("ui") { "Fragment_test.ts", "Geometry_test.ts", "Icon_test.ts", + "KeyboardShortcut_test.ts", "ListModel_test.ts", + "ShortcutRegistry_test.ts", "SyntaxHighlighter_test.ts", "UIUtils_test.ts", "utils/measured-scrollbar-width_test.ts", |