mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-29 05:34:21 +08:00
This allows test to be more explicit about which element log should correspond to. Bug: none Change-Id: I2d212b8a0b53ab46a94e822238b009a9190fd097 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5541748 Auto-Submit: Danil Somsikov <dsv@chromium.org> Reviewed-by: Ergün Erdoğmuş <ergunsh@chromium.org> Commit-Queue: Ergün Erdoğmuş <ergunsh@chromium.org>
12 lines
494 B
TypeScript
12 lines
494 B
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 * as VisualLogging from '../ui/visual_logging/visual_logging-testing.js';
|
|
|
|
export function getVeId(loggable: VisualLogging.Loggable.Loggable|string): number {
|
|
if (typeof loggable === 'string') {
|
|
loggable = document.querySelector(loggable)!;
|
|
}
|
|
return VisualLogging.LoggingState.getLoggingState(loggable)!.veid;
|
|
}
|