// Internal private state. Identifiers prefixed with qtest are reserved.
property bool qtest_prevWhen: true
property int qtest_testId: -1
+ property bool qtest_componentCompleted : false
property variant qtest_testCaseResult
property variant qtest_results: qtest_results_normal
TestResult { id: qtest_results_normal }
onWhenChanged: {
if (when != qtest_prevWhen) {
qtest_prevWhen = when
- if (when && !completed && !running)
+ if (when && !completed && !running && qtest_componentCompleted)
qtest_run()
}
}
Component.onCompleted: {
qtest.hasTestCase = true;
+ qtest_componentCompleted = true;
if (util.printAvailableFunctions) {
var testList = []
if (when && !completed && !running)
qtest_run()
}
-}
+}
\ No newline at end of file