Files
Danil Somsikov 628183c4a2 [ve] Replace stabilize* test helpers with getVeId
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>
2024-05-15 08:23:50 +00:00

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;
}