MCPcopy Create free account
hub / github.com/adobe/react-spectrum / longFrame

Function longFrame

perf/test/report.test.mjs:174–184  ·  view source on GitHub ↗
(startTime, duration, rest = {})

Source from the content-addressed store, hash-verified

172});
173
174function longFrame(startTime, duration, rest = {}) {
175 return {
176 startTime,
177 duration,
178 blockingDuration: Math.max(0, duration - 50),
179 renderStart: startTime + duration - 20,
180 styleAndLayoutStart: startTime + duration - 12,
181 scripts: [],
182 ...rest
183 };
184}
185
186test('long animation frames stay missing without entries and are summed when present', () => {
187 let sample = {

Callers 1

report.test.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected