aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmltest
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmltest')
-rw-r--r--src/qmltest/TestCase.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qmltest/TestCase.qml b/src/qmltest/TestCase.qml
index 4746cf858b..638372a42a 100644
--- a/src/qmltest/TestCase.qml
+++ b/src/qmltest/TestCase.qml
@@ -66,7 +66,8 @@ import "testlogger.js" as TestLogger
Table data can be provided to a test using a function name that ends
with "_data". Alternatively, the \c init_data() function can be used
- to provide default test data for all test functions in a TestCase type:
+ to provide default test data for all test functions without a matching
+ "_data" function in a TestCase type:
\code
@@ -95,7 +96,7 @@ import "testlogger.js" as TestLogger
compare(data.a + data.b, data.answer)
}
- function test__default_table(data) {
+ function test_default_table(data) {
//data comes from init_data
compare(data.a + data.b, data.answer)
}