diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-05-05 05:15:03 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2011-05-05 07:16:44 (GMT) |
commit | 5b044c36d0d7671c8ff9776822cf0f1ad7eeec79 (patch) | |
tree | ca8cd092ed3ce57de04aa35bef11be6c59e076c2 /tests/auto/qscriptv8testsuite | |
parent | 3290dd0d3563310f6bdbabf74105367bd8c611d3 (diff) | |
download | Qt-5b044c36d0d7671c8ff9776822cf0f1ad7eeec79.zip Qt-5b044c36d0d7671c8ff9776822cf0f1ad7eeec79.tar.gz Qt-5b044c36d0d7671c8ff9776822cf0f1ad7eeec79.tar.bz2 |
Fix compile error.
The previous change to tst_qscriptv8testsuite.cpp introduced a compile
error due to insufficient parameters to QTest::qVerify().
Change-Id: I9ea9462d830b9d796676947a3598e3c066b29180
Task-number: QTBUG-17582
Reviewed-by: Rohan McGovern
Diffstat (limited to 'tests/auto/qscriptv8testsuite')
-rw-r--r-- | tests/auto/qscriptv8testsuite/tst_qscriptv8testsuite.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/auto/qscriptv8testsuite/tst_qscriptv8testsuite.cpp b/tests/auto/qscriptv8testsuite/tst_qscriptv8testsuite.cpp index 0f63675..7328e1b 100644 --- a/tests/auto/qscriptv8testsuite/tst_qscriptv8testsuite.cpp +++ b/tests/auto/qscriptv8testsuite/tst_qscriptv8testsuite.cpp @@ -153,10 +153,14 @@ void tst_QScriptV8TestSuite::runTestFunction(int testIndex) QScriptValue ret = engine.evaluate(contents); if (engine.hasUncaughtException()) { if (!ret.isError()) { - QTest::qVerify(ret.instanceOf(engine.globalObject().property("MjsUnitAssertionError"))); + int lineNumber = ret.property("lineNumber").toInt32(); + QTest::qVerify(ret.instanceOf(engine.globalObject().property("MjsUnitAssertionError")), + ret.toString().toLatin1(), + "", + path.toLatin1(), + lineNumber); QString actual = ret.property("actual").toString(); QString expected = ret.property("expected").toString(); - int lineNumber = ret.property("lineNumber").toInt32(); QString failMessage; if (shouldGenerateExpectedFailures) { if (ret.property("message").isString()) |