Something went wrong. Try again.
An auto tiler for macOS
Something went wrong. Try again.
1234567891011121314151617import Testing
@testable import ParcelPlatform
@MainActorstruct TabViewPresentationTests { @Test func latencyUsesTheOriginalEventTimestamp() { #expect(TabViewPresentationTrace.latency(eventTimestamp: 1_000_000, frameTimestamp: 31_000_000) == 30_000_000) #expect(TabViewPresentationTrace.latency(eventTimestamp: 1, frameTimestamp: 1) == 0) }
@Test func absentOrFutureTimestampsAreNotMeasurements() { #expect(TabViewPresentationTrace.latency(eventTimestamp: 0, frameTimestamp: 100) == nil) #expect(TabViewPresentationTrace.latency(eventTimestamp: 101, frameTimestamp: 100) == nil) }}