logo
Expand description

This module contains functions useful for unit tests

Functions

Slint animations do not use real time, but use a mocked time. Normally, the event loop update the time of the animation using real time, but in tests, it is more convenient to use the fake time. This function will add some milliseconds to the fake time

Simulate entering a sequence of ascii characters key by key.

Simulate a mouse click

Simulate a change in keyboard modifiers being pressed

Applies the specified scale factor to the window that’s associated with the given component. This overrides the value provided by the windowing system.