mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-07 04:26:32 +08:00
This patch replaces unwelcoming language with better terms. 'Blacklist' is replaced with 'Ignore List'. These changes primarily target user-facing strings, further usage of 'blackbox' will be removed in follow-up CLs. Screenshot: https://i.imgur.com/7WhyOjN.png Bug: 1152082 Design doc: http://doc/1UnwKLgjYPDsLsYCBh9LKiaPN6Aq2XLKvt4Ak3FT7J3k Backend disable tests: https://crrev.com/c/2580885 Backend update tests: https://crrev.com/c/2581839 Change-Id: I30d1ac5900c375333327aafbcc17be80f85542e5 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2581542 Commit-Queue: Wolfgang Beyer <wolfi@chromium.org> Reviewed-by: Paul Lewis <aerotwist@chromium.org> Reviewed-by: Peter Marshall <petermarshall@chromium.org>
31 lines
1.3 KiB
TypeScript
31 lines
1.3 KiB
TypeScript
// 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 {click, getBrowserAndPages, waitFor} from '../../shared/helper.js';
|
|
import {describe, it} from '../../shared/mocha-extensions.js';
|
|
import {openSettingsTab} from '../helpers/settings-helpers.js';
|
|
import {addBreakpointForLine, openSourceCodeEditorForFile} from '../helpers/sources-helpers.js';
|
|
|
|
const PATTERN_ADD_BUTTON = 'button[aria-label="Add filename pattern"]';
|
|
const PATTERN_INPUT_FIELD = 'input[aria-label="Pattern"]';
|
|
const CLOSE_BUTTON = '.close-button[aria-label="Close"]';
|
|
|
|
describe('SourceMap handling', async () => {
|
|
it('can deal with a source map that has no mappings', async () => {
|
|
const {frontend} = getBrowserAndPages();
|
|
|
|
await openSettingsTab('Ignore List');
|
|
await click(PATTERN_ADD_BUTTON);
|
|
await waitFor(PATTERN_INPUT_FIELD);
|
|
await click(PATTERN_INPUT_FIELD);
|
|
await frontend.keyboard.type('cljs/user.cljs');
|
|
await frontend.keyboard.press('Enter');
|
|
await click(CLOSE_BUTTON);
|
|
|
|
await openSourceCodeEditorForFile(
|
|
'script-with-sourcemap-without-mappings.js', 'script-with-sourcemap-without-mappings.html');
|
|
await addBreakpointForLine(frontend, 1);
|
|
});
|
|
});
|