fix(utils.spec.qml): add missing . and test if dialog is not returned in test_openDialog

This commit is contained in:
Ronan Abhamon 2016-10-20 14:37:42 +02:00
parent 32dc83545e
commit feb6b25b1d

View file

@ -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`.')
}
}