Skip to content

Sync tracing tests with upstream Puppeteer#3137

Merged
kblok merged 2 commits intomasterfrom
sync-tracing-tests-upstream
Feb 16, 2026
Merged

Sync tracing tests with upstream Puppeteer#3137
kblok merged 2 commits intomasterfrom
sync-tracing-tests-upstream

Conversation

@kblok
Copy link
Member

@kblok kblok commented Feb 16, 2026

Summary

  • Fix ShouldThrowIfTracingOnTwoPages: Was incorrectly calling Page.Tracing.StartAsync (same page) instead of newPage.Tracing.StartAsync — now matches upstream behavior of testing tracing on a different page
  • Rename test attributes: Updated "should return a buffer""should return a typedArray" and "should support a buffer without a path""should support a typedArray without a path" to match upstream renames
  • Add missing test: "should properly fail if readProtocolStream errors out" — tests error handling when writing trace to an invalid path (directory instead of file)

Test plan

  • Run TracingTests suite with Chrome/CDP
  • Verify all 8 tracing tests pass

🤖 Generated with Claude Code

kblok and others added 2 commits February 16, 2026 13:17
- Fix ShouldThrowIfTracingOnTwoPages to start tracing on newPage (not same page)
- Rename "should return a buffer" to "should return a typedArray" to match upstream
- Rename "should support a buffer without a path" to "should support a typedArray without a path"
- Add missing test "should properly fail if readProtocolStream errors out"

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Fix StopAsync hang: propagate exception via TrySetException on
  TaskCompletionSource when ProtocolStreamReader fails
- Fix ShouldThrowIfTracingOnTwoPages to start tracing on newPage
- Rename test attributes to match upstream (buffer -> typedArray)
- Add missing test for readProtocolStream error handling

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant