i_slint_backend_testing

Function init_integration_test_with_system_time

Source
pub fn init_integration_test_with_system_time()
Expand description

Initialize the testing backend with support for simple event loop. This function can only be called once per process, so make sure to use integration tests with only one #[test] function. (Or in a doc test) Must be called before any call that would otherwise initialize the rendering backend. Calling it when the rendering backend is already initialized will panic.