mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-07 15:08:24 +00:00
fix(utils.spec.qml): add missing . and test if dialog is not returned in test_openDialog
This commit is contained in:
parent
32dc83545e
commit
feb6b25b1d
1 changed files with 8 additions and 4 deletions
|
|
@ -26,6 +26,10 @@ TestCase {
|
|||
fail(e)
|
||||
}
|
||||
|
||||
if (dialog == null) {
|
||||
fail('`dialog` is not returned')
|
||||
}
|
||||
|
||||
dialog.close()
|
||||
}
|
||||
|
||||
|
|
@ -70,13 +74,13 @@ TestCase {
|
|||
})
|
||||
|
||||
if (!failed) {
|
||||
fail('`setTimeout` callback was called before `wait`')
|
||||
fail('`setTimeout` callback was called before `wait`.')
|
||||
}
|
||||
|
||||
wait(200)
|
||||
|
||||
if (failed) {
|
||||
fail('`setTimeout` failed because callback it was not called in due course')
|
||||
fail('`setTimeout` failed because callback it was not called in due course.')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -101,14 +105,14 @@ TestCase {
|
|||
})
|
||||
|
||||
if (failed) {
|
||||
fail('`setTimeout` callback was called')
|
||||
fail('`setTimeout` callback was called before `wait`.')
|
||||
}
|
||||
|
||||
Utils.clearTimeout(timeout)
|
||||
wait(100)
|
||||
|
||||
if (failed) {
|
||||
fail('`setTimeout` callback was called')
|
||||
fail('`setTimeout` callback was called after `wait`.')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue