mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-04 16:44:11 +03:00
chore(trace-viewer): format negative duration as - (#30840)
This commit is contained in:
parent
b375f10778
commit
dcaded5255
@ -55,7 +55,7 @@ export function useMeasure<T extends Element>() {
|
||||
}
|
||||
|
||||
export function msToString(ms: number): string {
|
||||
if (!isFinite(ms))
|
||||
if (ms < 0 || !isFinite(ms))
|
||||
return '-';
|
||||
|
||||
if (ms === 0)
|
||||
|
Loading…
Reference in New Issue
Block a user