diff options
author | Caroline Chao <caroline.chao@theqtcompany.com> | 2015-06-02 14:49:23 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-06-15 09:31:15 +0000 |
commit | d05f1d8ead078a0b93e0de63f74e7b3c71105a9d (patch) | |
tree | 3805ff306d86c54719a2a7b71ac4e134bf5e98b9 /tests/auto/qmltest/selftests | |
parent | 58a5aa3a09c39355081e45c34d6cc02dd8ac5733 (diff) |
QuickTest: Enable use of BLACKLIST file
So qml test functions can be blacklisted. Qml test functions have the
following format: TestCaseName::functionName.
Change-Id: Ifcaa8d77d8f0956472aa568dc6dbfcbdde4e5063
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'tests/auto/qmltest/selftests')
-rw-r--r-- | tests/auto/qmltest/selftests/tst_selftests.qml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/auto/qmltest/selftests/tst_selftests.qml b/tests/auto/qmltest/selftests/tst_selftests.qml index 0d09f9536a..a372107e26 100644 --- a/tests/auto/qmltest/selftests/tst_selftests.qml +++ b/tests/auto/qmltest/selftests/tst_selftests.qml @@ -278,4 +278,30 @@ TestCase { } verify(caught) } + + function test_blacklisted_fail() + { + verify(false) + } + + function test_blacklistWithData_data() { + return [ + { + tag: "test1", + success: true + }, + { + tag: "test2", + success: false + }, + { + tag: "test3", + success: true + } + ] + } + + function test_blacklistWithData(row) { + verify(row.success) + } } |