2
0
mirror of synced 2025-01-12 15:24:34 +00:00
Stefan 20e7b345e1 tests(general): refactor tests
Enhance the CMake strucuture of thests
Update documentation
2022-05-05 17:16:13 +02:00

24 lines
492 B
QML

pragma Singleton
import QtQml 2.14
import QtTest 1.0
QtObject {
//> Simulate key and wait for side effects
function pressKeyAndWait(test, item, key) {
test.keyClick(key)
ensureRendered(test, item)
}
function ensureRendered(test, item) {
test.verify(test.waitForRendering(item, 1000))
}
function expectRendering(test, item) {
test.verify(test.isPolishScheduled(item))
test.verify(test.waitForRendering(item, 1000))
}
}