LomiriTestCase QML Type
|Import Statement:||import Lomiri.Test 1.0|
- testUtil : alias
- findChild(, )
- findChildWithProperty(, , )
- findInvisibleChild(, )
- flick(item, x, y, dx, dy, pressTimeout, steps, button, modifiers, delay)
- mouseLongPress(item, x, y, button, modifiers, delay)
- mouseMoveSlowly(, , , , , , , )
- tryCompareFunction(, , )
- warningFormat(, , )
This component is under heavy development.
Finds a visible child of an item having a given property with a given value.
Find a non-visual child such as QtObject based on objectName.
The function produces a flick event when executed on Flickables. When used on other components it provides the same functionality as
mouseDrag() function. The optional pressTimeout parameter can be used to introduce a small delay between the mouse press and the first mouse move. Setting a negative or zero value will disable the timeout.
The default flick velocity is built up using 5 move points. This can be altered by setting a positive value to steps parameter. The bigger the number the longer the flick will be. When a negative or zero value is given, the default of 5 move points will be used.
Simulates a long press on a mouse button with an optional modifier on an item. The position is defined by x and y. If delay is specified, the test will wait the specified amount of milliseconds before the press.
The position given by x and y is transformed from the co-ordinate system of item into window co-ordinates and then delivered. If item is obscured by another item, or a child of item occupies that position, then the event will be delivered to the other item instead.
Move Mouse from x,y to distance of dx, dy divided to steps with a stepdelay (ms) and buttons.
Keeps executing a given parameter-less function until it returns the given expected result or the timemout is reached (in which case a test failure is generated)
Convenience function to allow typing a full string instead of single characters
Wait for animations of the header and the style inside the header to finish. The MainView that has the header that may animate must be passed as an argument.
Warning message formatter, uses file name, line and column numbers to build up the message.