tauri_sys::mocks

Function mock_windows

source
pub fn mock_windows(current: &str, additional_windows: &[&str])
Expand description

Mocks many window labels. In non-tauri context it is required to call this function///before* using the @tauri-apps/api/window module.

This function only mocks the presence of windows, window properties (e.g. width and height) can be mocked like regular IPC calls using the mockIPC function.

@param current Label of window this JavaScript context is running in. @param additionalWindows Label of additional windows the app has.