24 lines
492 B
QML
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))
|
|
}
|
|
}
|