summaryrefslogtreecommitdiff
path: root/tests/auto/qscriptv8testsuite
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-05-05 15:15:03 +1000
committerRohan McGovern <rohan.mcgovern@nokia.com>2011-05-18 11:02:59 +1000
commit1f8fba4de211299133d168d92d5d196900070e42 (patch)
tree8391286b61dac4dcf38ac1eb6738c617aae1877f /tests/auto/qscriptv8testsuite
parentf9d986da6c6f7d12a9819dde7de6445e336d10a1 (diff)
downloadqtscript-1f8fba4de211299133d168d92d5d196900070e42.tar.gz
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 (cherry picked from commit 5b044c36d0d7671c8ff9776822cf0f1ad7eeec79)
Diffstat (limited to 'tests/auto/qscriptv8testsuite')
-rw-r--r--tests/auto/qscriptv8testsuite/tst_qscriptv8testsuite.cpp8
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())