diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-05-03 12:51:47 +1000 |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2011-05-18 11:02:59 +1000 |
commit | 4fa2c1676a76b6f16e25ed8938475613401c9b44 (patch) | |
tree | 932c36583a44584b65b25d48a715b2e3532afbc9 /tests/auto/qscriptv8testsuite/tst_qscriptv8testsuite.cpp | |
parent | 18c9331213efa436a25b555b1b1fb4e01ce52ad1 (diff) | |
download | qtscript-4fa2c1676a76b6f16e25ed8938475613401c9b44.tar.gz |
Remove Q_ASSERT from V8 autotest
Replace Q_ASSERT with QTest::qVerify, in line with the rest of this test
function.
Change-Id: Ia39e62efb9945f72a6a93fddddf36488cd456965
Task-number: QTBUG-17582
Reviewed-by: Rohan McGovern
(cherry picked from commit 3ba55189d9aa7d9d7c2087071dcb4d338c0feab8)
Diffstat (limited to 'tests/auto/qscriptv8testsuite/tst_qscriptv8testsuite.cpp')
-rw-r--r-- | tests/auto/qscriptv8testsuite/tst_qscriptv8testsuite.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qscriptv8testsuite/tst_qscriptv8testsuite.cpp b/tests/auto/qscriptv8testsuite/tst_qscriptv8testsuite.cpp index b35fd06..0f63675 100644 --- a/tests/auto/qscriptv8testsuite/tst_qscriptv8testsuite.cpp +++ b/tests/auto/qscriptv8testsuite/tst_qscriptv8testsuite.cpp @@ -153,7 +153,7 @@ void tst_QScriptV8TestSuite::runTestFunction(int testIndex) QScriptValue ret = engine.evaluate(contents); if (engine.hasUncaughtException()) { if (!ret.isError()) { - Q_ASSERT(ret.instanceOf(engine.globalObject().property("MjsUnitAssertionError"))); + QTest::qVerify(ret.instanceOf(engine.globalObject().property("MjsUnitAssertionError"))); QString actual = ret.property("actual").toString(); QString expected = ret.property("expected").toString(); int lineNumber = ret.property("lineNumber").toInt32(); |