Skip to content

Commit a797aee

Browse files
TimvdLippeCommit Bot
authored andcommitted
Add ts_library for test/e2e/application
Also adds the relevant ts_library definitions for the helpers and shared code. R=aerotwist@chromium.org Bug: 1011811 Change-Id: I14087afc05d4aadee611cc317b1d2485f3826d20 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2112552 Reviewed-by: Jack Franklin <jacktfranklin@chromium.org> Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
1 parent 5d2d79b commit a797aee

5 files changed

Lines changed: 51 additions & 0 deletions

File tree

‎test/BUILD.gn‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
group("test") {
66
deps = [
77
"e2e",
8+
"shared",
89
"unittests/front_end",
910
]
1011
}

‎test/e2e/BUILD.gn‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ import("../../third_party/typescript/typescript.gni")
77
ts_library("e2e") {
88
testonly = true
99
sources = [ "test-list.ts" ]
10+
11+
deps = [ "application" ]
1012
}

‎test/e2e/application/BUILD.gn‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright 2020 The Chromium Authors. All rights reserved.
2+
# Use of this source code is governed by a BSD-style license that can be
3+
# found in the LICENSE file.
4+
5+
import("../../../third_party/typescript/typescript.gni")
6+
7+
ts_library("application") {
8+
testonly = true
9+
sources = [
10+
"session-storage.ts",
11+
"websql-database.ts",
12+
]
13+
14+
deps = [ "../../shared" ]
15+
}

‎test/e2e/helpers/BUILD.gn‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Copyright 2020 The Chromium Authors. All rights reserved.
2+
# Use of this source code is governed by a BSD-style license that can be
3+
# found in the LICENSE file.
4+
5+
import("../../../third_party/typescript/typescript.gni")
6+
7+
ts_library("helpers") {
8+
testonly = true
9+
sources = [
10+
"console-helpers.ts",
11+
"elements-helpers.ts",
12+
"quick_open-helpers.ts",
13+
"search-helpers.ts",
14+
"settings-helpers.ts",
15+
"sources-helpers.ts",
16+
]
17+
18+
deps = [ "../../shared" ]
19+
}

‎test/shared/BUILD.gn‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2020 The Chromium Authors. All rights reserved.
2+
# Use of this source code is governed by a BSD-style license that can be
3+
# found in the LICENSE file.
4+
5+
import("../../third_party/typescript/typescript.gni")
6+
7+
ts_library("shared") {
8+
testonly = true
9+
sources = [
10+
"helper.ts",
11+
"runner.ts",
12+
"screenshot.ts",
13+
]
14+
}

0 commit comments

Comments
 (0)