From e8420af07158dc3aa5c6ea7ddae6f8be4976e454 Mon Sep 17 00:00:00 2001 From: Jason McDonald Date: Tue, 7 Feb 2012 15:09:44 +1000 Subject: qmltest: Perform extra checks after each data row is executed. Add calls to the new function QTestResult::finishedCurrentTestData() to verify that expected failures and expected messages have been produced. Change-Id: Ia139a962c705a5f47be992b7f2e81775aa2e2f28 Reviewed-by: Rohan McGovern Reviewed-by: Yunqiao Yin --- src/qmltest/quicktest.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/qmltest/quicktest.cpp') diff --git a/src/qmltest/quicktest.cpp b/src/qmltest/quicktest.cpp index b1b9897edd..ed5fa7b3f8 100644 --- a/src/qmltest/quicktest.cpp +++ b/src/qmltest/quicktest.cpp @@ -173,6 +173,7 @@ template void handleCompileErrors(const QFileInfo &fi, const View & // Fail with error 0. results.fail(errors.at(0).description(), errors.at(0).url(), errors.at(0).line()); + results.finishTestData(); results.finishTestFunction(); results.setFunctionName(QString()); results.setFunctionType(QuickTestResult::NoWhere); -- cgit v1.2.3