diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-10-19 13:24:34 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-21 04:12:18 +0200 |
commit | 080a1f3ff328005b78f89381c8d9faf4b0b8e16c (patch) | |
tree | 31cacc4362b39e806448681232595b58f289cd92 /tests/auto/qmltest | |
parent | 9167f5338ec978462d64f2f348144f674a2d599c (diff) |
Remove SkipMode from qtestlib API.
The SkipMode parameter to QSKIP has been removed in qtbase, therefore it
must also be removed here.
Task-number: QTBUG-21851, QTBUG-21652
Change-Id: I8016f8c28338b1b532bdb593c796d699b99250dc
Reviewed-by: Charles Yin <charles.yin@nokia.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/qmltest')
-rw-r--r-- | tests/auto/qmltest/selftests/tst_selftests.qml | 32 |
1 files changed, 4 insertions, 28 deletions
diff --git a/tests/auto/qmltest/selftests/tst_selftests.qml b/tests/auto/qmltest/selftests/tst_selftests.qml index 88f0468de9..3da615d8c2 100644 --- a/tests/auto/qmltest/selftests/tst_selftests.qml +++ b/tests/auto/qmltest/selftests/tst_selftests.qml @@ -82,12 +82,8 @@ TestCase { } } - function skipSingle(msg, file, line) { - failmsg = "skipSingle:" + msg - } - - function skipAll(msg, file, line) { - failmsg = "skipAll:" + msg + function skip(msg, file, line) { + failmsg = "skip:" + msg } } @@ -271,7 +267,7 @@ TestCase { testCase.skip("foo") } catch (e) { compare(e.message, "QtQuickTest::skip") - compare(functions.failmsg, "skipSingle:foo") + compare(functions.failmsg, "skip:foo") caught = true } verify(caught) @@ -281,27 +277,7 @@ TestCase { testCase.skip() } catch (e) { compare(e.message, "QtQuickTest::skip") - compare(functions.failmsg, "skipSingle:") - caught = true - } - verify(caught) - - caught = false - try { - testCase.skipAll("foo") - } catch (e) { - compare(e.message, "QtQuickTest::skip") - compare(functions.failmsg, "skipAll:foo") - caught = true - } - verify(caught) - - caught = false - try { - testCase.skipAll() - } catch (e) { - compare(e.message, "QtQuickTest::skip") - compare(functions.failmsg, "skipAll:") + compare(functions.failmsg, "skip:") caught = true } verify(caught) |