mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-13 17:14:02 +03:00
fix(tracing): account for screencast timestamps when computing timeline boundary of empty trace (#13214)
This commit is contained in:
parent
28234b6540
commit
b2c863f6a3
@ -152,6 +152,10 @@ export class TraceModel {
|
||||
this.contextEntry!.startTime = Math.min(this.contextEntry!.startTime, event.metadata.startTime);
|
||||
this.contextEntry!.endTime = Math.max(this.contextEntry!.endTime, event.metadata.endTime);
|
||||
}
|
||||
if (event.type === 'screencast-frame') {
|
||||
this.contextEntry!.startTime = Math.min(this.contextEntry!.startTime, event.timestamp);
|
||||
this.contextEntry!.endTime = Math.max(this.contextEntry!.endTime, event.timestamp);
|
||||
}
|
||||
}
|
||||
|
||||
private _modernize(event: any): trace.TraceEvent {
|
||||
|
Loading…
Reference in New Issue
Block a user