diff options
Diffstat (limited to 'src/imports/testlib/testcase.qdoc')
-rw-r--r-- | src/imports/testlib/testcase.qdoc | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/imports/testlib/testcase.qdoc b/src/imports/testlib/testcase.qdoc index 4e95c5e..77ddcb6 100644 --- a/src/imports/testlib/testcase.qdoc +++ b/src/imports/testlib/testcase.qdoc @@ -378,24 +378,30 @@ */ /*! - \qmlmethod TestCase::expectFail(tag, message = "") + \qmlmethod TestCase::expectFail(tag, message) In a data-driven test, marks the row associated with \a tag as - expected to fail. When the fail occurs, display the optional - \a message, abort the test, and mark the test as passing. - Similar to \c{QEXPECT_FAIL(tag, message, Abort)} in C++. + expected to fail. When the fail occurs, display the \a message, + abort the test, and mark the test as passing. Similar to + \c{QEXPECT_FAIL(tag, message, Abort)} in C++. + + If the test is not data-driven, then \a tag must be set to + the empty string. \sa expectFailContinue() */ /*! - \qmlmethod TestCase::expectFailContinue(tag, message = "") + \qmlmethod TestCase::expectFailContinue(tag, message) In a data-driven test, marks the row associated with \a tag as - expected to fail. When the fail occurs, display the optional - \a message, and then continue the test. Similar to + expected to fail. When the fail occurs, display the \a message, + and then continue the test. Similar to \c{QEXPECT_FAIL(tag, message, Continue)} in C++. + If the test is not data-driven, then \a tag must be set to + the empty string. + \sa expectFail() */ |