summaryrefslogtreecommitdiffstats
path: root/dom/webgpu/tests/cts/checkout/src/common/util/timeout.ts
blob: 13c3b7fb90929d40605c5850339375928821cf6c (plain)
1
2
3
4
5
6
7
/** Defined by WPT. Like `setTimeout`, but applies a timeout multiplier for slow test systems. */
declare const step_timeout: undefined | typeof setTimeout;

/**
 * Equivalent of `setTimeout`, but redirects to WPT's `step_timeout` when it is defined.
 */
export const timeout = typeof step_timeout !== 'undefined' ? step_timeout : setTimeout;