diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2012-02-07 15:09:44 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-09 00:31:00 +0100 |
commit | e8420af07158dc3aa5c6ea7ddae6f8be4976e454 (patch) | |
tree | f2f3b7ab0ca941117dbc645337b1cd4a5b1ab8ae /src/imports | |
parent | f7d2bcf3c59d07548b88e8c7546821a5e86222dc (diff) |
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 <rohan.mcgovern@nokia.com>
Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
Diffstat (limited to 'src/imports')
-rw-r--r-- | src/imports/testlib/TestCase.qml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/imports/testlib/TestCase.qml b/src/imports/testlib/TestCase.qml index 5b853cbad5..a1ab85c4cb 100644 --- a/src/imports/testlib/TestCase.qml +++ b/src/imports/testlib/TestCase.qml @@ -486,6 +486,7 @@ Item { if (!qtest_results.skipped) { qtest_results.functionType = TestResult.Func qtest_runInternal(prop, arg) + qtest_results.finishTestData() qtest_results.functionType = TestResult.CleanupFunc qtest_runInternal("cleanup") } @@ -510,7 +511,9 @@ Item { else qtest_results.startBenchmark(TestResult.RunOnce, qtest_results.dataTag) while (!qtest_results.isBenchmarkDone()) { - if (!qtest_runInternal(prop, arg)) + var success = qtest_runInternal(prop, arg) + qtest_results.finishTestData() + if (!success) break qtest_results.nextBenchmark() } |