Skip to content

Commit cb74830

Browse files
Liviu RauDevtools-frontend LUCI CQ
authored andcommitted
Migrate test/e2e/sources/breakpoint-javascript_test.ts
Fixed: 416404716 Change-Id: Ia9241360d721b2b8a9055c2f45337714f076333b Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6787828 Auto-Submit: Liviu Rau <liviurau@chromium.org> Commit-Queue: Liviu Rau <liviurau@chromium.org> Reviewed-by: Alex Rudenko <alexrudenko@chromium.org> Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
1 parent e2de5de commit cb74830

5 files changed

Lines changed: 246 additions & 296 deletions

File tree

test/e2e/helpers/sources-helpers.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,13 @@ export async function getSelectedSource(): Promise<string> {
188188
return await (sourceTabs.evaluate(node => node.getAttribute('aria-label')) as Promise<string>);
189189
}
190190

191-
export async function getBreakpointHitLocation() {
192-
const breakpointHitHandle = await waitFor('.breakpoint-item.hit');
193-
const locationHandle = await waitFor('.location', breakpointHitHandle);
191+
export async function getBreakpointHitLocation(devToolsPage = getBrowserAndPagesWrappers().devToolsPage) {
192+
const breakpointHitHandle = await devToolsPage.waitFor('.breakpoint-item.hit');
193+
const locationHandle = await devToolsPage.waitFor('.location', breakpointHitHandle);
194194
const locationText = await locationHandle.evaluate(location => location.textContent);
195195

196196
const groupHandle = await breakpointHitHandle.evaluateHandle(x => x.parentElement!);
197-
const groupHeaderTitleHandle = await waitFor('.group-header-title', groupHandle);
197+
const groupHeaderTitleHandle = await devToolsPage.waitFor('.group-header-title', groupHandle);
198198
const groupHeaderTitle = await groupHeaderTitleHandle?.evaluate(header => header.textContent);
199199

200200
return `${groupHeaderTitle}:${locationText}`;

test/e2e/sources/BUILD.gn

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import("../../../scripts/build/typescript/typescript.gni")
66

77
node_ts_library("sources") {
88
sources = [
9-
"breakpoint-javascript_test.ts",
109
"can-disable-auto-sources-focus_test.ts",
1110
"overrides_test.ts",
1211
]

test/e2e/sources/breakpoint-javascript_test.ts

Lines changed: 0 additions & 291 deletions
This file was deleted.

test/e2e_non_hosted/sources/BUILD.gn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ ts_e2e_library("sources") {
88
sources = [
99
"authored-deployed-grouping_test.ts",
1010
"breakpoint-csp-violations_test.ts",
11+
"breakpoint-javascript_test.ts",
1112
"breakpoints-sidebarpane_test.ts",
1213
"can-break-with-wasm-sourcemaps_test.ts",
1314
"can-handle-special-characters_test.ts",

0 commit comments

Comments
 (0)