mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-13 01:54:52 +08:00
Make sure that unit test files use the same base name as the file that they are testing. Also consolidate tests appropriately when they are in the wrong file. Fixed: b:325892225 Bug: b:323795674 Change-Id: I1197a44eb45544c8f6fccf330b7afe6b8e20bd21 Doc: http://go/chrome-devtools:move-unit-tests-design Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5307615 Reviewed-by: Simon Zünd <szuend@chromium.org> Commit-Queue: Benedikt Meurer <bmeurer@chromium.org> Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
31 lines
923 B
TypeScript
31 lines
923 B
TypeScript
// Copyright 2021 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 {type Brand} from './Brand.js';
|
|
|
|
/**
|
|
* File paths in DevTools that are represented as URLs
|
|
* @example
|
|
* “file:///Hello%20World/file/js”
|
|
*/
|
|
export type UrlString = Brand<string, 'UrlString'>;
|
|
export const EmptyUrlString = '' as UrlString;
|
|
|
|
/**
|
|
* File paths in DevTools that are represented as unencoded absolute
|
|
* or relative paths
|
|
* @example
|
|
* “/Hello World/file.js”
|
|
*/
|
|
export type RawPathString = Brand<string, 'RawPathString'>;
|
|
export const EmptyRawPathString = '' as RawPathString;
|
|
|
|
/**
|
|
* File paths in DevTools that are represented as encoded paths
|
|
* @example
|
|
* “/Hello%20World/file.js”
|
|
*/
|
|
export type EncodedPathString = Brand<string, 'EncodedPathString'>;
|
|
export const EmptyEncodedPathString = '' as EncodedPathString;
|