timeout.ts (343B)
1 /** Defined by WPT. Like `setTimeout`, but applies a timeout multiplier for slow test systems. */ 2 declare const step_timeout: undefined | typeof setTimeout; 3 4 /** 5 * Equivalent of `setTimeout`, but redirects to WPT's `step_timeout` when it is defined. 6 */ 7 export const timeout = typeof step_timeout !== 'undefined' ? step_timeout : setTimeout;