Bin
2025-12-16 9e0b2ba2c317b1a86212f24cbae3195ad1f3dbfa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
 * Constants for tests
 */
 
/**
 * Wait time for processing a single animation frame (in ms)
 * Used for waiting for fast renders and DOM updates
 */
export const SINGLE_FRAME_TIMEOUT = 16;
 
/**
 * Wait time for processing two animation frames (in ms)
 * Used for waiting for fast renders which could be done in two steps for some reason
 */
export const TWO_FRAMES_TIMEOUT = SINGLE_FRAME_TIMEOUT * 2;
 
/**
 * Wait time for canvas rendering to stabilize (in ms)
 * Used for audio/video components that need canvas rendering to complete
 */
export const CANVAS_STABILIZATION_TIMEOUT = 100;
 
/**
 * Wait time for state transitions in audio components (in ms)
 * Used after user interactions that change visual state
 */
export const AUDIO_STATE_TRANSITION_TIMEOUT = 50;