mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-28 21:24:26 +08:00
Enabling this is required for rules that need to use the types as resolved by the TypeScript compiler. The no-floating-promises rule was missing some stuff due to missing types, so this CL resolves that too. Also, return-await kicked up more stuff. A warm run of `npm run lint` went from ~23s to ~35s on my M1 Mac. Bug: 406518012 Change-Id: I0c413e2ca14ee903851fd8404e490335c7f8aae0 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6397499 Reviewed-by: Nikolay Vitkov <nvitkov@chromium.org> Reviewed-by: Benedikt Meurer <bmeurer@chromium.org> Reviewed-by: Jack Franklin <jacktfranklin@chromium.org> Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
40 lines
1.1 KiB
TypeScript
40 lines
1.1 KiB
TypeScript
// Copyright 2023 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 {assert} from 'chai';
|
|
|
|
import {
|
|
click,
|
|
getBrowserAndPages,
|
|
waitFor,
|
|
} from '../../shared/helper.js';
|
|
import {
|
|
addBreakpointForLine,
|
|
getCallFrameNames,
|
|
openSourceCodeEditorForFile,
|
|
PAUSE_INDICATOR_SELECTOR,
|
|
RESUME_BUTTON,
|
|
} from '../helpers/sources-helpers.js';
|
|
|
|
describe('The Sources Tab', () => {
|
|
// Skip this test until the flakiness is fixed.
|
|
it.skip('[crbug.com/1466450]: sets the breakpoint in the first script for multiple inline scripts', async () => {
|
|
const {frontend, target} = getBrowserAndPages();
|
|
await openSourceCodeEditorForFile('inline-scripts.html', 'inline-scripts.html');
|
|
await addBreakpointForLine(frontend, 4);
|
|
await addBreakpointForLine(frontend, 11);
|
|
|
|
await target.reload();
|
|
await waitFor(PAUSE_INDICATOR_SELECTOR);
|
|
|
|
let names = await getCallFrameNames();
|
|
assert.strictEqual(names[0], 'f1');
|
|
|
|
await click(RESUME_BUTTON);
|
|
|
|
names = await getCallFrameNames();
|
|
assert.strictEqual(names[0], 'f4');
|
|
});
|
|
});
|